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