public void TestChangeSuggestions3() { var control = new SuggestionInputControl(); var suggestions = new ObservableCollectionMock(); suggestions.Listeners.Should().BeEmpty(); control.Suggestions = suggestions; suggestions.Listeners.Should().HaveCount(1); control.RaiseEvent(new RoutedEventArgs(FrameworkElement.UnloadedEvent)); suggestions.Listeners.Should().BeEmpty(); }
public void TestChangeSuggestions2() { var control = new SuggestionInputControl(); var suggestions = new ObservableCollectionMock(); suggestions.Listeners.Should().BeEmpty(); control.Suggestions = suggestions; suggestions.Listeners.Should().HaveCount(1); control.Suggestions = null; suggestions.Listeners.Should().BeEmpty(); }