Пример #1
0
        public void IsValid_WithTestCases_ProducesCorrectResults(int start, int end, bool expected)
        {
            var interval = new StupidInterval(start, end);

            var output = IntervalExtensions.IsValid(interval);

            Assert.That(output, Is.EqualTo(expected));
        }
Пример #2
0
 public void IsValid_NullInterval_ReturnsFalse()
 {
     Assert.That(IntervalExtensions.IsValid <int>(null), Is.False);
 }