public void ShouldPerformCaseExecutionBehaviorForAllGivenCases()
        {
            var cases = new[]
            {
                new Case(testClass, Method("Pass")),
                new Case(testClass, Method("Fail"))
            };

            var executeCases = new ExecuteCases();
            var fixture      = new Fixture(testClass, new SampleTestClass(), convention.CaseExecution.Behavior, cases);

            executeCases.Execute(fixture);

            cases[0].Exceptions.Any().ShouldBeFalse();
            cases[1].Exceptions.ToArray().Single().Message.ShouldEqual("'Fail' failed!");
            log.ShouldEqual("Pass", "Fail");
        }
Beispiel #2
0
 public InstanceBehaviorBuilder()
 {
     Behavior = new ExecuteCases();
 }