public void IsReadOnlyClearMethodException() { var test = new LinkedListCollection <int>(); test.Add(1); test.Add(2); test = test.ReadOnlyList(); Assert.Throws <NotSupportedException>(() => test.Clear()); }
public void ValidatesClearMethod() { var list = new LinkedListCollection <int> { 1, 2, 3 }; list.Clear(); Assert.Empty(list); }