public void Should_Return_IntervalName_2011to2013() { SpanOfYears testInterval = new SpanOfYears(2011, 2013); string testName = testInterval.ClassName(); Assert.AreEqual("2011to2013", testName); }
public static string ClassNameFor(string classnamePrefix, SpanOfYears span) { string className = classnamePrefix + span.ClassName(); return(className); }