using NUnit.Framework; [TestFixture] public class Tehtetest{ [Test()] public void Liitmiseproov(){ Abitehted a=new Abitehted(); Assert.AreEqual(5, a.Liida(3, 2)); } [Test()] public void Liitmiseproov2(){ Abitehted a=new Abitehted(); Assert.AreEqual(6, a.Liida(3, 2)); } } /* C:\Program Files\NUnit 2.4.6\samples\csharp\oma>csc /target:library Abitehted.cs Tehtetest.cs /r:nunit.framework.dll Microsoft (R) Visual C# 2008 Compiler version 3.5.21022.8 for Microsoft (R) .NET Framework version 3.5 Copyright (C) Microsoft Corporation. All rights reserved. C:\Program Files\NUnit 2.4.6\samples\csharp\oma>copy Abitehted.dll ..\..\..\bin Overwrite ..\..\..\bin\Abitehted.dll? (Yes/No/All): y 1 file(s) copied. */ /* C:\Program Files\NUnit 2.4.6\bin>nunit-console.exe Abitehted.dll NUnit version 2.4.6 Copyright (C) 2002-2007 Charlie Poole. Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. Copyright (C) 2000-2002 Philip Craig. All Rights Reserved. Runtime Environment - OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2 CLR Version: 2.0.50727.1433 ( Net 2.0.50727.1433 ) ..F Tests run: 2, Failures: 1, Not run: 0, Time: 0.156 seconds Test Case Failures: 1) Tehtetest.Liitmiseproov2 : Expected: 6 But was: 5 at Tehtetest.Liitmiseproov2() */