public void AssertThat_IntersectWith_Intersects() { for (var i = 0; i < 10; i++) { _set.Add(i); } _set.IntersectWith(Enumerable.Range(7, 5)); for (var i = 0; i < 6; i++) { Assert.IsFalse(_set.Contains(i)); } for (var i = 7; i < 10; i++) { Assert.IsTrue(_set.Contains(i)); } for (var i = 10; i < 12; i++) { Assert.IsFalse(_set.Contains(i)); } }