public void ToString_ReturnsOptionalStepPlusInnerStep() { var innerStep = CreateStep(x => x.Projects); var optionalStep = new OptionalStep(innerStep); Assert.AreEqual("EmployeeVMDescriptor.Projects?", optionalStep.ToString(isFirst: true)); }
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); }
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); }