public void ToString_EqualsExpectedResult(QuarterHourTestItem <string> testItem) { var quarterHour = testItem.Create(); var formatted = quarterHour.ToString(); Assert.AreEqual(testItem.ExpectedResult, formatted); }
public void Parse_EqualsExpectedResult(QuarterHourTestItem <string> testItem) { var quarterHourFromText = QuarterHour.Parse(testItem.ExpectedResult); // TODO bad use of Expected result? var expectedQuarterHour = testItem.Create(); Assert.AreEqual(expectedQuarterHour, quarterHourFromText); }