public void IfCollectionDoNotContainsValueWeShouldReturnFalse() { int[] collection = new int[] { 1, 2, 3, 4 }; int value = 0; Assert.False(IntContains.IContains(collection, new ExactEqualityComparer(value))); }
public void IfCollectionDoNotContainsPrimeNumbersWeShouldReturnFalse() { int[] collection = new int[] { 1, 6, 12, 9 }; Assert.False(IntContains.IContains(collection, new PrimeEqualityComparer())); }
public void IfCollectionContainsPrimeNumbersWeShouldReturnTrue() { int[] collection = new int[] { 2, 3, 5, 11 }; Assert.True(IntContains.IContains(collection, new PrimeEqualityComparer())); }
public void IfCollectionDoNotContainsOddNumbersWeShouldReturnFalse() { int[] collection = new int[] { 1, 5, 3, 7 }; Assert.False(IntContains.IContains(collection, new EvenEqualityComparer())); }
public void IfCollectionContainsOddNumbersWeShouldReturnTrue() { int[] collection = new int[] { 1, 2, 3, 4 }; Assert.True(IntContains.IContains(collection, new EvenEqualityComparer())); }