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)); }
public void IsValid_NullInterval_ReturnsFalse() { Assert.That(IntervalExtensions.IsValid <int>(null), Is.False); }