Exemple #1
0
        public void ChecksIfBoundsContainGivenBounds()
        {
            var b = new Bounds(new Point(5, -2, 0), new Point(11, 4, 7));

            b.ContainsBounds(new Bounds(new Point(5, -2, 0), new Point(11, 4, 7))).Should().BeTrue();
            b.ContainsBounds(new Bounds(new Point(6, -1, 1), new Point(10, 3, 6))).Should().BeTrue();
            b.ContainsBounds(new Bounds(new Point(4, -3, -1), new Point(10, 3, 6))).Should().BeFalse();
            b.ContainsBounds(new Bounds(new Point(6, -1, 1), new Point(12, 5, 8))).Should().BeFalse();
        }