public void ValidateCharToDoubleWithLimitsConverter() { int maxValue = 10; CharToDoubleWithLimitsConverter cdwlc = new CharToDoubleWithLimitsConverter(maxValue); char c = cdwlc.ConvertBackward(9); double d = cdwlc.ConvertForward('8'); Assert.AreEqual('9', c); Assert.AreEqual(8, d); }
public void ValidateCharToDoubleWithLimitsConverter() { int maxValue = 10; CharToDoubleWithLimitsConverter cdwlc = new CharToDoubleWithLimitsConverter(maxValue); char c = cdwlc.ConvertBackward(9); double d = cdwlc.ConvertForward('8'); Assert.AreEqual('9', c); Assert.AreEqual(8, d); }