public void GetCommand_OptionObject2015_GetErrorCode5_ReturnsGetErrorCode5Command()
        {
            // Arrange
            OptionObject2015     optionObject = new OptionObject2015();
            string               parameter    = "GetErrorCode5";
            GetErrorCode5Command expected     = new GetErrorCode5Command(optionObject);

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

            // Assert
            Assert.AreEqual(expected.GetType(), actual.GetType());
        }
예제 #2
0
        public void GetCommand_OptionObject2_GetErrorCode5_ReturnsGetErrorCode5Command()
        {
            // Arrange
            OptionObject2          optionObject          = new OptionObject2();
            IParameter             parameter             = new Parameter("GetErrorCode5");
            IOptionObjectDecorator optionObjectDecorator = new OptionObjectDecorator(optionObject);
            GetErrorCode5Command   expected = new GetErrorCode5Command(optionObjectDecorator);

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

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