public static void RunTest(this ITestable testable) { Condition.Requires(testable).IsNotNull(); var tests = testable.GetTests(); var testStore = testable.GenerateTestInput(); IStore testResultsStore = NaturalInMemoryStore.New(); tests.HandleOperations(testStore, testResultsStore); var errors = tests.GetErrors(testResultsStore); if (errors != null && errors.Count > 0) { //output the stores testResultsStore.JoinStore(testStore); var dump = StoreSerializer.SerializeStore(testResultsStore, ValueManagerChainOfResponsibility.NewDefault()); Debug.WriteLine(dump); throw new InvalidOperationException("test failure"); } }