public void Spec02() { using (var testable = new OnBeforeCodeWindowRunTestable()) { testable.DocumentName = "lintable.json"; testable.Initialize(); var checkStatus = testable.MenuCommand.OleStatus; testable.EnvironmentMock.VerifyGet(x => x.ActiveDocument); I.Expect(testable.MenuCommand.Visible).ToBeTrue(); } }
public void Spec02() { using (var testable = new OnBeforeCodeWindowRunTestable()) { testable.DocumentName = "lintable.json"; testable.Init(); testable.BeforeHandler.Invoke(testable.MenuCommand, null); testable.EnvironmentMock.VerifyGet(x => x.ActiveDocument); I.Expect(testable.MenuCommand.Visible).ToBeTrue(); } }