public void AssertParseTest(object valueToParse, object expectedParsedValue) { var decimalValueParser = new DecimalValueParser(); var parsedValue = decimalValueParser.Parse(valueToParse); Assert.AreEqual(expectedParsedValue, parsedValue); }
public void AssertParseFailTest(string valueToParse, Type expectionType, string exceptionMessage) { var decimalValueParser = new DecimalValueParser(); Assert.Throws(expectionType, () => decimalValueParser.Parse(valueToParse), exceptionMessage); }