示例#1
0
        public void SuccessNotInVertex()
        {
            vScript = "[0..91]";
            MockPath.Setup(x => x.AddScript(vScript));

            vStep = new TravStepTake <FabFactor, FabArtifact>("cmd", false);

            vStep.ConsumePath(MockPath.Object, vToType);

            MockItem.Verify(x => x.VerifyParamCount(1, -1), Times.Once);
            MockPath.Verify(x => x.AddScript(vScript), Times.Once);
        }
示例#2
0
        public override void SetUp()
        {
            base.SetUp();

            vCount  = 92;
            vScript = "[0..91].inV";
            vToType = typeof(FabArtifact);
            vStep   = new TravStepTake <FabFactor, FabArtifact>("cmd", true);

            MockItem.Setup(x => x.VerifyParamCount(1, -1));
            MockItem.Setup(x => x.GetParamAt <int>(0)).Returns(vCount);

            MockPath.Setup(x => x.AddScript(vScript));
        }