public void IsStraightLine_Should_ReturnFalse_When_OneDot()
        {
            var space = new Refactoring.Space();

            space.Add(new[]
            {
                new Dot {
                    X = 1, Y = 0, Z = 1
                }
            });

            Assert.False(space.IsStraightLine());
        }
        public void IsStraightLine_Should_ReturnTrue_When_TwoDots()
        {
            var space = new Refactoring.Space();

            space.Add(new[]
            {
                new Dot {
                    X = 1, Y = 0, Z = 1
                },
                new Dot {
                    X = 1, Y = 3, Z = 2
                },
            });

            Assert.True(space.IsStraightLine());
        }
        public void IsStraightLine_Should_ReturnFalse_When_FourNonAlignedDots()
        {
            var space = new Refactoring.Space();

            space.Add(new[]
            {
                new Dot {
                    X = 1, Y = 0, Z = 1
                },
                new Dot {
                    X = 3, Y = 0, Z = 2
                },
                new Dot {
                    X = 7, Y = 0, Z = 4
                },
                new Dot {
                    X = 9, Y = 0, Z = 7
                },
            });

            Assert.False(space.IsStraightLine());
        }
        public void IsStraightLine_Should_ReturnTrue_When_FourAlignedDots()
        {
            var space = new Refactoring.Space();

            space.Add(new[]
            {
                new Dot {
                    X = 1, Y = 0, Z = 1
                },
                new Dot {
                    X = 3, Y = -1, Z = 2
                },
                new Dot {
                    X = 7, Y = -3, Z = 4
                },
                new Dot {
                    X = 9, Y = -4, Z = 5
                },
            });

            Assert.True(space.IsStraightLine());
        }