public void ConvertToUshortTest2() { RFUintConverter d = new RFUintConverter(); uint value = 3256000012; ushort expected2 = 49682; ushort expected1 = 40460; ushort[] actual = d.ConvertToUshort(value); Assert.AreEqual(expected1, actual[1]); Assert.AreEqual(expected2, actual[0]); }
public void ConvertToUshortTest3() { RFUintConverter d = new RFUintConverter(); uint value = 247233247; ushort expected2 = 3772; ushort expected1 = 31455; ushort[] actual = d.ConvertToUshort(value); Assert.AreEqual(expected1, actual[1]); Assert.AreEqual(expected2, actual[0]); }
public void ConvertToUshortTest1() { RFUintConverter d = new RFUintConverter(); uint value = 5; ushort expected2 = 0; ushort expected1 = 5; ushort[] actual = d.ConvertToUshort(value); Assert.AreEqual(expected1, actual[1]); Assert.AreEqual(expected2, actual[0]); }