public void GetCommand_OptionObject2015_GetErrorCode3_ReturnsGetErrorCode3Command() { // Arrange OptionObject2015 optionObject = new OptionObject2015(); string parameter = "GetErrorCode3"; GetErrorCode3Command expected = new GetErrorCode3Command(optionObject); // Act IRunScriptCommand actual = CommandFactory.GetCommand(optionObject, parameter); // Assert Assert.AreEqual(expected.GetType(), actual.GetType()); }
public void GetCommand_OptionObject2_GetErrorCode3_ReturnsGetErrorCode3Command() { // Arrange OptionObject2 optionObject = new OptionObject2(); IParameter parameter = new Parameter("GetErrorCode3"); IOptionObjectDecorator optionObjectDecorator = new OptionObjectDecorator(optionObject); GetErrorCode3Command expected = new GetErrorCode3Command(optionObjectDecorator); // Act IRunScriptCommand actual = CommandFactory.GetCommand(optionObject, parameter); // Assert Assert.AreEqual(expected.GetType(), actual.GetType()); }