public void Changed_OneTimeDisabled_Event() { Create(""); Assert.False(_asyncTaggerSourceRaw._oneTimeDisabled); var raised = false; _asyncTaggerSource.Changed += delegate { raised = true; }; _vimData.RaiseHighlightSearchOneTimeDisable(); Assert.True(raised); Assert.True(_asyncTaggerSourceRaw._oneTimeDisabled); }
public void Handle_OneTimeDisabledEvent() { Create(""); Assert.IsFalse(_taggerRaw._oneTimeDisabled); var raised = false; _tagger.TagsChanged += delegate { raised = true; }; _vimData.RaiseHighlightSearchOneTimeDisable(); Assert.IsTrue(raised); Assert.IsTrue(_taggerRaw._oneTimeDisabled); }