Ejemplo n.º 1
0
            public void Setup()
            {
                _expected = new MandelbrotPixel
                {
                    Finished   = false,
                    Iterations = 1,
                    Position   = new Complex(0.5m, 0.2m),
                    Z          = new Complex(0.5m, 0.2m)
                };

                _sut = new MandelbrotPixel
                {
                    Finished   = false,
                    Iterations = 0,
                    Position   = new Complex(0.5m, 0.2m),
                    Z          = new Complex(0, 0)
                };

                _sut.Iterate();
            }
Ejemplo n.º 2
0
            public void Setup()
            {
                _expected = new MandelbrotPixel
                {
                    Finished   = true,
                    Iterations = 2,
                    Position   = new Complex(2, 2),
                    Z          = new Complex(2, -6)
                };

                _sut = new MandelbrotPixel
                {
                    Finished   = false,
                    Iterations = 1,
                    Position   = new Complex(2, 2),
                    Z          = new Complex(-2, 2)
                };

                _sut.Iterate();
            }