public void Implicit_ToUInt32_Matches_Value() { UInt32 expectedValue = 0x12345678; UInt32Parts test = new UInt32Parts(expectedValue); Assert.AreEqual(expectedValue, (UInt32)test, "Results from implicit UInt32 operator did not match the input value"); }
public void GetLowPart_Equals_LeastSignificantWord() { UInt32 expectedValue = 0x12345678; UInt32Parts test = new UInt32Parts(expectedValue); Assert.AreEqual((UInt16)0x5678, test.LowWord, "Results from LowPart did not match the least-significant 16-bits."); }