public void Detach_TextEditor_FoldGeneratorDisposed() { editorExtension.Attach(fakeTextEditor); editorExtension.Detach(); fakeFoldGenerator.AssertWasCalled(generator => generator.Dispose()); }
public void Detach_TextEditor_FoldGeneratorDisposed() { languageBinding.Attach(fakeTextEditor); languageBinding.Detach(); fakeFoldGenerator.AssertWasCalled(generator => generator.Dispose()); }
public void Constructor_FoldGeneratorPassedToBeScheduled_FoldsUpdatedBeforeTimerFires() { CreateScheduledFoldGenerator(); fakeFoldGenerator.AssertWasCalled(generator => generator.GenerateFolds()); }