Пример #1
0
        public void AreUniqueShouldReturnTrueWithRepeatedItem()
        {
            var strings = new[] { "one", "one", "two" };

            var result = strings.AreUnique();

            Assert.That(result, Is.False);
        }
Пример #2
0
        public void AreUniqueShouldReturnFalseForAUniqueArray()
        {
            var strings = new[] { "one", "two", "three" };

            var result = strings.AreUnique();

            Assert.That(result, Is.True);
        }