Example #1
0
        public void ToString_ReturnsOptionalStepPlusInnerStep()
        {
            var innerStep    = CreateStep(x => x.Projects);
            var optionalStep = new OptionalStep(innerStep);

            Assert.AreEqual("EmployeeVMDescriptor.Projects?", optionalStep.ToString(isFirst: true));
        }
Example #2
0
        public void Matches_InnerStepSucceeds_Succeeds()
        {
            var optionalStep = new OptionalStep(PathAssert.SucceedingNextStep);

            var path = Path
                       .Empty
                       .Append(VM);

            var assert = new PathAssert(optionalStep, path);

            assert.AssertMatchWith(PathAssert.SucceedingNextStep);
        }
Example #3
0
        public void Matches_InnerStepFailsNextStepFails_Fails()
        {
            var optionalStep = new OptionalStep(PathAssert.FailingNextStep);

            var path = Path
                       .Empty
                       .Append(VM);

            var assert = new PathAssert(optionalStep, path);

            assert.AssertNoMatchWith(PathAssert.FailingNextStep);
        }