public void ItShouldReturn_Singleton() { var factory = new DoNothingDocumentCommandFactory(); var command = factory.CreateCommand(NullDocument.Instance); var command2 = factory.CreateCommand(null); Assert.Equal(command, command2); }
public void ItShouldCreate_DoNothingCommand() { var factory = new DoNothingDocumentCommandFactory(); var command = factory.CreateCommand(NullDocument.Instance); Assert.IsType <DoNothingCommand>(command); }
public void ItShouldHandle_Null() { var factory = new DoNothingDocumentCommandFactory(); var command = factory.CreateCommand(null); Assert.NotNull(factory); Assert.NotNull(command); }