Exemplo n.º 1
0
        public void GivenFixtureWhenSequenceInvalidLowerThanCurrentSequenceThenIsSequenceValidReturnsFalse()
        {
            //
            //Arrange
            //
            var fixtureDelta = new Fixture {
                Sequence = 2
            };
            int currentSequence   = 3;
            var fixtureValidation = new FixtureValidation();

            //
            //Act
            //
            bool isSequenceValid = fixtureValidation.IsSequenceValid(
                fixtureDelta,
                currentSequence);

            //
            //Assert
            //
            Assert.IsFalse(isSequenceValid);
        }
Exemplo n.º 2
0
        public void GivenFixtureWhenSequenceValidThenIsSequenceValidReturnsTrue()
        {
            //
            //Arrange
            //
            var fixtureDelta = new Fixture {
                Sequence = 4
            };
            int currentSequence   = 3;
            var fixtureValidation = new FixtureValidation();

            //
            //Act
            //
            bool isSequenceValid = fixtureValidation.IsSequenceValid(
                fixtureDelta,
                currentSequence);

            //
            //Assert
            //
            Assert.IsTrue(isSequenceValid);
        }