Beispiel #1
0
        public void HasCountOfShouldReturnTrueForCorrectCount()
        {
            var strings = new[] { "one", "two", "three" };

            var result = strings.HasCountOf(3);

            Assert.That(result, Is.True);
        }
Beispiel #2
0
        public void HasCountOfShouldReturnFalseForIncorrectCount()
        {
            var strings = new[] { "one", "two", "three" };

            var result = strings.HasCountOf(4);

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