public static void Run(this IMockingBenchmark benchmark) { benchmark.Stub(); benchmark.Moq(); benchmark.NSubstitute(); benchmark.FakeItEasy(); benchmark.Rocks(); }
public static void Run <T>(this IMockingBenchmark <T> benchmark) { Test(benchmark.GetType().Name, "Stub", () => benchmark.Stub() is IThingy); Test(benchmark.GetType().Name, "Moq", () => benchmark.Moq() is IThingy); Test(benchmark.GetType().Name, "NSubstitute", () => benchmark.NSubstitute() is IThingy); Test(benchmark.GetType().Name, "FakeItEasy", () => benchmark.FakeItEasy() is IThingy); Test(benchmark.GetType().Name, "Rocks", () => benchmark.Rocks() is IThingy); }