public void TestUInt64BackCoverterForIllegal(string inputValue, string format) { var varInfo = new UInt64DataValue(new DataValue(new Variant((UInt64)0))); varInfo.FormatSelectedItem = format; Assert.ThrowsException <OverflowException>(() => varInfo.ConvertValueBack(inputValue)); }
public void TestUInt64BackCoverter(string inputValue, string format, UInt64 expectedDisplayValue) { var varInfo = new UInt64DataValue(new DataValue(new Variant((UInt64)0))); varInfo.FormatSelectedItem = format; varInfo.ConvertValueBack(inputValue); Assert.AreEqual(varInfo.GetRawValue(), expectedDisplayValue); }