示例#1
0
        public void AssertParseTest(object valueToParse, object expectedParsedValue)
        {
            var decimalValueParser = new DecimalValueParser();

            var parsedValue = decimalValueParser.Parse(valueToParse);

            Assert.AreEqual(expectedParsedValue, parsedValue);
        }
示例#2
0
        public void AssertParseFailTest(string valueToParse, Type expectionType, string exceptionMessage)
        {
            var decimalValueParser = new DecimalValueParser();

            Assert.Throws(expectionType, () => decimalValueParser.Parse(valueToParse), exceptionMessage);
        }