public int InsertNumberNUnitTest1(int first, int second, int i, int j) { return(NumberMethods.InsertNumber(first, second, i, j)); }
public void InsertNumberTest_NumbersMoreThan15_ThrowsException() { Assert.ThrowsException <ArgumentOutOfRangeException>(() => NumberMethods.InsertNumber(9, 16, 0, 3)); }
public void InsertNumberNUnitTest_BitILessThanBitJ_ThrowsException(int first, int second, int i, int j) { Assert.Throws <ArgumentOutOfRangeException>(() => NumberMethods.InsertNumber(first, second, i, j)); }
public void InsertNumberTest_NumbersLessThan8_ThrowsException() { Assert.ThrowsException <ArgumentOutOfRangeException>(() => NumberMethods.InsertNumber(7, 10, 2, 3)); }
public void InsertNumberTest_BitILessThanBitJ_ThrowsException() { Assert.ThrowsException <ArgumentOutOfRangeException>(() => NumberMethods.InsertNumber(9, 10, 5, 3)); }
public void InsertNumberTest3() { Assert.AreEqual(NumberMethods.InsertNumber(8, 15, 3, 8), 120); }
public void InsertNumberTest2() { Assert.AreEqual(NumberMethods.InsertNumber(8, 15, 0, 0), 9); }
public void InsertNumberTest1() { Assert.AreEqual(NumberMethods.InsertNumber(15, 15, 0, 0), 15); }