public void TestBit8_SetBits_1() { Bit8 bit8 = new Bit8(); bit8[0] = true; Assert.IsTrue(bit8.BitsOn == 1); bit8[1] = true; Assert.IsTrue(bit8.BitsOn == 2); bit8[2] = true; Assert.IsTrue(bit8.BitsOn == 3); bit8[3] = true; Assert.IsTrue(bit8.BitsOn == 4); bit8[4] = true; Assert.IsTrue(bit8.BitsOn == 5); bit8[5] = true; Assert.IsTrue(bit8.BitsOn == 6); bit8[6] = true; Assert.IsTrue(bit8.BitsOn == 7); bit8[7] = true; Assert.IsTrue(bit8.BitsOn == 8); }
public void TestBit8_SetBits_2() { Bit8 bit8 = new Bit8(); bit8.SetAll(true); Assert.IsTrue(bit8.BitsOn == 8); }
public void TestBit8_Create_1() { Bit8 bit8 = new Bit8(); Assert.IsTrue(bit8.BitsOn == 0); }