Пример #1
0
 public void ToBits_Converts8bits_Converted()
 {
     bool[] expected =
     {
         true,
         true,
         false,
         true,
         false,
         false,
         true,
         true,
     };
     CollectionAssert.AreEqual(expected, BitConverter.ToBits(211));
 }
Пример #2
0
 public void ToBits_Converts9Bits_Converted()
 {
     bool[] expected =
     {
         true,
         false,
         false,
         false,
         false,
         false,
         false,
         true,
         false
     };
     bool[] temp = BitConverter.ToBits(258);
     CollectionAssert.AreEqual(expected, temp);
 }