public void TestClass1() { const string expected = "1, 2, 3, 4, 5"; var generator = new Class1(); generator.SetRange(1, 5); var result = generator.GenerateOutput(); Assert.AreEqual(expected, result); }