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