public void ClearAffectsBothLists() { var wrappedList = new List <Uri>(); var destList = new ListAdapter <string, Uri>( str => new Uri(str), uri => uri.ToString(), (str, uri) => string.Equals(str, uri?.ToString()), wrappedList) { "http://maps.google.com", "http://www.twitter.com" }; wrappedList.Count.Should().Be(2); destList.Clear(); wrappedList.Count.Should().Be(0); destList.Count.Should().Be(0); }
public void Clear() { _adapter.Clear(); Assert.That(_innerList, Is.Empty); }