public void ChangeWriterCommand_ChangeToLinkSheetWriter_ReceiverHasLinkSheetWriter() { testCommand = new ChangeToLinkWriter(testSheet, Directory.GetCurrentDirectory()); testCommand.Execute(); Assert.That(testSheet.Writer, Is.InstanceOf<DirectoryLinkWriter>()); }
public void ChangeToLinkRemover_Execute_RecieverHasLinkRemover() { testCommand = new ChangeToLinkRemover(testSheet); testCommand.Execute(); Assert.That(testSheet.RemoveTool, Is.InstanceOf<LinkRemover>()); }
public void ChangeToolCommand_ChangeToLinkTool_ReceiverHasLinkTool() { testCommand = new ChangeToLinkEmbedder(testSheet); testCommand.Execute(); Assert.That(testSheet.EmbedTool, Is.InstanceOf<LinkEmbedder>()); }
public void ChangeToDirectoryFormatter_Execute_ReceiverHasDirectoryForm() { testCommand = new ChangeToDirectoryFormatter(testSheet); testCommand.Execute(); Assert.That(testSheet.Formatter, Is.InstanceOf<DirectoryFormatter>()); }