, unit- (. unit testing) , .
, . , , , . , .
, . , , . , . , , , , . , . , .
. , . . , , , . . .
.NET
.NET NUnit Microsoft Unit Testing Framework.
NUnit unit- .NET. Java ( JUnit). NUnit J#, C# .NET, .
NUnit, . NUnit.Forms NUnit Windows Forms. NUnit.ASP ASP.NET.
NUnit :
using NUnit.Framework;
[TestFixture]
public class ExampleTestOfNUnit
{
[Test]
public void TestMultiplication()
{
Assert.AreEqual(4, 2 * 2, "");
}
}
NUnit, [TestFixture] , . [Test], Assert , , .
, Visual Studio.
Visual Studio Microsoft Unit Testing Framework.