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

                // Assert
                Check.That(exception)
                .IsNull();
            }
Beispiel #2
0
            public void Throw_InvalidOperationException_With_Unknown_Step(bool invalidCondition)
            {
                // Act
                var exception = Record.Exception(() => StepCheckerTested.AssertCalledOnce(StepName.Unknown, invalidCondition));

                // Assert
                Check.That(exception)
                .IsNotNull()
                .And.IsInstanceOf <InvalidOperationException>();
            }
Beispiel #3
0
            public void Throw_InvalidOperationException_With_Invalid_Condition(string step)
            {
                // Act
                var exception = Record.Exception(() => StepCheckerTested.AssertCalledOnce(step, Condition.Invalid));

                // Assert
                Check.That(exception)
                .IsNotNull()
                .And.IsInstanceOf <InvalidOperationException>();
            }
Beispiel #4
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>();
            }