3. An Example with NUnit #region Using using NUnit.Framework; #endregion namespace com.sds.prime { [TestFixture] public class PrimeTest { [Test] public void testMethod() { Prime prime = new Prime(); } } }
7. An Example with NUnit #region Using using NUnit.Framework; #endregion namespace com.sds.prime { [TestFixture] public class PrimeTest { [Test] public void testMethod() { Prime prime = new Prime(); Assert.IsTrue(prime.getNext(1) == 1); } } }
11. An Example with NUnit #region Using using NUnit.Framework; #endregion namespace com.sds.prime { [TestFixture] public class PrimeTest { [Test] public void testMethod() { Prime prime = new Prime(); Assert.IsTrue(prime.getNext(1) == 1); Assert.IsTrue(prime.getNext(2) == 2); } } }
15. An Example with NUnit #region Using using NUnit.Framework; #endregion namespace com.sds.prime { [TestFixture] public class PrimeTest { [Test] public void testMethod() { Prime prime = new Prime(); Assert.IsTrue(prime.getNext(1) == 1); Assert.IsTrue(prime.getNext(2) == 2); Assert.IsTrue(prime.getNext(10) == 23); } } }