示例#1
0
            public void Pass_Without_Invalid_Condition(string step)
            {
                // Act
                var exception = Record.Exception(() => StepCheckerTested.AssertCalledAfter(step, Condition.Valid));

                // Assert
                Check.That(exception)
                .IsNull();
            }
示例#2
0
            public void Throw_InvalidOperationException_With_Invalid_Condition(string step)
            {
                // Act
                var exception = Record.Exception(() => StepCheckerTested.AssertCalledAfter(step, Condition.Invalid));

                // Assert
                Check.That(exception)
                .IsNotNull()
                .And.IsInstanceOf <InvalidOperationException>();
            }
示例#3
0
            public void Throw_InvalidOperationException_With_First_Step()
            {
                // Act
                var exception = Record.Exception(() => StepCheckerTested.AssertCalledAfter(StepName.Step1, Condition.Valid));

                // Assert
                Check.That(exception)
                .IsNotNull()
                .And.IsInstanceOf <InvalidOperationException>();
            }
示例#4
0
            public void Throw_InvalidOperationException_With_Unknown_Step(bool invalidCondition)
            {
                // Act
                var exception = Record.Exception(() => StepCheckerTested.AssertCalledAfter(StepName.Unknown, invalidCondition));

                // Assert
                Check.That(exception)
                .IsNotNull()
                .And.IsInstanceOf <InvalidOperationException>();
            }