public void Enables_info_when_active_document_and_editor_exist() { ctx.Stub(p => p.ActiveDocumentAndEditorExist()).Return(true); CommandInfo commandInfo = new CommandInfo { Enabled = false }; subject.TestUpdate(commandInfo); Assert.IsTrue(commandInfo.Enabled); }
public void Appends_duplicated_text() { ctx.Stub(p => p.GetTextToDuplicate()).Return(text); subject.TestRun(); ctx.AssertWasCalled(p => p.AppendDuplicatedText(text)); }