示例#1
0
        public void Intersects_should_return_false()
        {
            // Arrange
            var a = new Range <int>(1, 6);
            var b = new Range <int>(6, 10);

            // Act
            var actual = Range <int> .Intersects(a, b);

            // Assert
            actual.Should().BeFalse();
        }
示例#2
0
        public void Intersects_should_return_true()
        {
            // Arrange
            var a = new Range <int>(1, 5);
            var b = new Range <int>(4, 10);

            // Act
            var actual = Range <int> .Intersects(a, b);

            // Assert
            actual.Should().BeTrue();
        }