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

            var result = strings.HasCountOf(3);

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

            var result = strings.HasCountOf(4);

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