public void SetCollectionAdapter_SetEquals_NotEqual_ReturnsFalse() { List <int> backingList = new List <int>() { 12, 13, 14 }; SetCollectionAdapter <int> adapter = new SetCollectionAdapter <int>(backingList); Assert.IsFalse(adapter.SetEquals(new int[] { 6, 7, 12, 18, 13, 9 })); }
public void SetCollectionAdapter_SetEquals_AreEqual_ReturnsTrue() { List <int> backingList = new List <int>() { 12, 13, 14 }; SetCollectionAdapter <int> adapter = new SetCollectionAdapter <int>(backingList); Assert.IsTrue(adapter.SetEquals(new int[] { 14, 12, 13, 14, 13, 12 })); }
public void SetCollectionAdapter_SetEquals_Null_ThrowArgumentNull() { List <int> backingList = new List <int>() { 12, 13, 14 }; SetCollectionAdapter <int> adapter = new SetCollectionAdapter <int>(backingList); Assert.ThrowsException <ArgumentNullException>( #pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type. () => adapter.SetEquals(null)); #pragma warning restore CS8625 // Cannot convert null literal to non-nullable reference type. }