Esempio n. 1
0
        public void CallCorrectClassWithGoodInputs(string[] parameters, Subcommand expectedSubcommand)
        {
            var restParams = parameters.Skip(1).ToArray();

            Assert.IsTrue(ParameterResolver.DelegateToSubcommands(_factoryMock.Object, parameters).Success);
            var expectedCommandMock = expectedSubcommand == Subcommand.Sln ? _slnMock : _opcuaAppMock;

            expectedCommandMock.Verify(c => c.Execute(restParams), Times.Once);
        }
Esempio n. 2
0
 public CommandResult Execute(IEnumerable <string> inputParams)
 {
     return(ParameterResolver.DelegateToSubcommands(_factory, inputParams));
 }