public void InsertNumber_ThrowArgumentException() { int numberSource = 15; int numberIn = 15; int extend = 15; int i = 5; int j = 1; int actual = BitInsert.InsertNumber(numberSource, numberIn, i, j); }
public void InsertNumber_Between3And8_Success() { int numberSource = 8; int numberIn = 15; int extend = 120; int i = 3; int j = 8; int actual = BitInsert.InsertNumber(numberSource, numberIn, i, j); Assert.AreEqual(extend, actual); }
public void SuccsesfullTests() { Assert.AreEqual(BitInsert.InsertNumber(15, 15, 0, 0), 15); Assert.AreEqual(BitInsert.InsertNumber(8, 15, 3, 8), 120); }
public void WrongArgument() { BitInsert.InsertNumber(15, 15, 0, 32); }