示例#1
0
        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);
        }
示例#2
0
        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);
        }