コード例 #1
0
        public void IntervalToWithTag_StartLessThanEnd_ReturnsInterval()
        {
            var interval = IntervalExtensions.IntervalTo(5, 10, "tag");

            Assert.That(interval, Is.EqualTo(new Interval <int>(5, 10)).Using(IntervalEqualityComparer <int> .Default));
        }
コード例 #2
0
 public void IntervalToWithTag_StartAfterEnd_ThrowsArgumentNullException()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => IntervalExtensions.IntervalTo(10, 5, "tag"));
 }