public void IntToBinaryTest() { Assert.AreEqual(BinaryTool.IntToBinary(3, 2), new int[] { 1, 1 }); Assert.AreEqual(BinaryTool.IntToBinary(3, 8), new int[] { 1, 1, 0, 0, 0, 0, 0, 0 }); Assert.AreEqual(BinaryTool.IntToBinary(255, 8), new int[] { 1, 1, 1, 1, 1, 1, 1, 1 }); }