public void GetCommand_OptionObject2015_GetErrorCode1_ReturnsGetErrorCode1Command()
        {
            // Arrange
            OptionObject2015     optionObject = new OptionObject2015();
            string               parameter    = "GetErrorCode1";
            GetErrorCode1Command expected     = new GetErrorCode1Command(optionObject);

            // Act
            IRunScriptCommand actual = CommandFactory.GetCommand(optionObject, parameter);

            // Assert
            Assert.AreEqual(expected.GetType(), actual.GetType());
        }
Exemplo n.º 2
0
        public void GetCommand_OptionObject2_GetErrorCode1_ReturnsGetErrorCode1Command()
        {
            // Arrange
            OptionObject2          optionObject          = new OptionObject2();
            IParameter             parameter             = new Parameter("GetErrorCode1");
            IOptionObjectDecorator optionObjectDecorator = new OptionObjectDecorator(optionObject);
            GetErrorCode1Command   expected = new GetErrorCode1Command(optionObjectDecorator);

            // Act
            IRunScriptCommand actual = CommandFactory.GetCommand(optionObject, parameter);

            // Assert
            Assert.AreEqual(expected.GetType(), actual.GetType());
        }