public void Level2BitArray3() { Level2.BitArray bitArrayTest = new Level2.BitArray(5); Level2.BitArray bitArrayTest2 = new Level2.BitArray(3); List<Level2.BitArray> list = new List<Level2.BitArray>(){bitArrayTest,bitArrayTest2}; list.Sort(); Assert.AreEqual(list[0].getBitsInt(),3); }
public void Level2BitArray2() { Level2.BitArray bitArrayTest = new Level2.BitArray(5); string expected_result = "101"; string actual_result = bitArrayTest.getBits(); Assert.AreEqual(expected_result, actual_result); }
public void Level2BitArray5() { Level2.BitArray bitArrayTest = new Level2.BitArray(17); bitArrayTest.invertBits(); bitArrayTest.invertBits(); Assert.AreEqual(bitArrayTest.getBitsInt(), 17); }