예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void SuccsesfullTests()
 {
     Assert.AreEqual(BitInsert.InsertNumber(15, 15, 0, 0), 15);
     Assert.AreEqual(BitInsert.InsertNumber(8, 15, 3, 8), 120);
 }
예제 #4
0
 public void WrongArgument()
 {
     BitInsert.InsertNumber(15, 15, 0, 32);
 }