public void TestStringBackCoverter(string inputValue, string format, string expectedDisplayValue) { var varInfo = new StringVariableInfo(); varInfo.FormatSelectedItem = format; var wVal = varInfo.Value; var convVal = (WrappedValue <string>)wVal.ConvertBack(inputValue); Assert.AreEqual(convVal.Value, expectedDisplayValue); }
public void TestStringCoverter(string inputValue, string format, string expectedDisplayValue) { var varInfo = new StringVariableInfo(); varInfo.FormatSelectedItem = format; var wVal = varInfo.Value; wVal.Value = inputValue; var convVal = wVal.Convert(); Assert.AreEqual(convVal, expectedDisplayValue); }