コード例 #1
0
 public void ShouldValidateSingleDescribeWithSingleItAndBeforeEachAndAfterEach()
 {
     var specification = new TestSpecificationWithSingleItWithBeforeEachAndAfterEach();
     var result = specification.BuildExpression();
    
     result.Examples.Should().HaveCount(1);
     var example = result.Examples.First();
     example.Examples.Should().HaveCount(1);
     example.BeforeEach.Should().NotBeNull();
     example.AfterEach.Should().NotBeNull();
 }
コード例 #2
0
        public void ShouldValidateSingleDescribeWithSingleItAndBeforeEachAndAfterEach()
        {
            var specification = new TestSpecificationWithSingleItWithBeforeEachAndAfterEach();
            var result        = specification.BuildExpression();

            result.Examples.Should().HaveCount(1);
            var example = result.Examples.First();

            example.Examples.Should().HaveCount(1);
            example.BeforeEach.Should().NotBeNull();
            example.AfterEach.Should().NotBeNull();
        }