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