.NET Framework Unit testing Creating a sample test method

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


MSTest (the default testing framework) requires you to have your test classes decorated by a [TestClass] attribute, and the test methods with a [TestMethod] attribute, and to be public.

public class FizzBuzzFixture
    public void Test1()
        var solver = new FizzBuzzSolver();
        var result = solver.FizzBuzz(1);

Got any .NET Framework Question?