コード例 #1
0
        public void ShouldValidateSpecificationWithBeforeAll()
        {
            var specification = new TestSpecificationWithBeforeAll();
            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();
            example.BeforeAll.Should().NotBeNull();
        }
コード例 #2
0
        public void ShouldValidateSpecificationWithBeforeAll()
        {
            var specification = new TestSpecificationWithBeforeAll();
            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();
            example.BeforeAll.Should().NotBeNull();
        }