public void TestMethod3() { BitArray letterAasBits = new BitArray(new bool[] { true, false, false, false, false, false, true, false }); char letterAasChar = 'A'; char result = PaperTapeExtensions.ToChar(letterAasBits); if (result != letterAasChar) { throw new FormatException(); } }
public void TestMethod2() { BitArray letterAasBits = new BitArray(new bool[] { true, false, false, false, false, false, true, false }); string letterAasString = "01000001"; string result = PaperTapeExtensions.ToBitString(letterAasBits); if (result != letterAasString) { throw new FormatException(); } }