示例#1
0
        public TestTheBestEllipseOfPoint()
        {
            Point [] pointsDh = new [] { new Point()
                                         {
                                             x = 1, y = 2, z = 3, cr = 1, info = "test"
                                         }
                                         , new Point()
                                         {
                                             x = 2, y = 3, z = 4, cr = 2, info = "test"
                                         }
                                         , new Point()
                                         {
                                             x = 3, y = 4, z = 5, cr = 3, info = "test"
                                         } };
            Point[] pointsBm = new[] { new Point()
                                       {
                                           x = 2, y = 3, z = 4
                                       }
                                       , new Point()
                                       {
                                           x = 3, y = 4, z = 5
                                       }
                                       , new Point()
                                       {
                                           x = 5, y = 8, z = 4
                                       }
                                       , new Point()
                                       {
                                           x = 3, y = 2, z = 5
                                       }
                                       , new Point()
                                       {
                                           x = 8, y = 7, z = 4
                                       }
                                       , new Point()
                                       {
                                           x = 7, y = 5, z = 3
                                       }
                                       , new Point()
                                       {
                                           x = 0, y = 0, z = 1
                                       } };
            DhObj inDh = new DhObj()
            {
                points = pointsDh
            };
            BmObj inBm = new BmObj()
            {
                points = pointsBm, xAxis = 20, yAxis = 10, zAxis = 10, xElPos = 1, yElPos = 4, zElPos = 4
            };

            inData = new DhBmObj()
            {
                dh = inDh, bm = inBm
            };

            counter = new Counter(2);
        }
示例#2
0
        public void truePartionOfPoints()
        {
            int countOfParts = 4;

            BmObj[] bmObjParts = new BmObj[countOfParts];
            for (int i = 0; i < countOfParts; i++)
            {
                bmObjParts[i] = new BmObj(inData, countOfParts, i + 1);
            }
            Assert.AreEqual(3, bmObjParts[0].points.Count());
            Assert.AreEqual(2, bmObjParts[1].points.Count());
            Assert.AreEqual(2, bmObjParts[2].points.Count());
            Assert.AreEqual(2, bmObjParts[3].points.Count());
        }
示例#3
0
 public TestBmObj()
 {
     Point[] pointsBm = new[] { new Point()
                                {
                                    x = 2, y = 3, z = 4
                                }
                                , new Point()
                                {
                                    x = 3, y = 4, z = 5
                                }
                                , new Point()
                                {
                                    x = 5, y = 8, z = 4
                                }
                                , new Point()
                                {
                                    x = 3, y = 2, z = 5
                                }
                                , new Point()
                                {
                                    x = 8, y = 7, z = 4
                                }
                                , new Point()
                                {
                                    x = 7, y = 5, z = 3
                                }
                                , new Point()
                                {
                                    x = 0, y = 0, z = 1
                                }
                                , new Point()
                                {
                                    x = 5, y = 6, z = 1
                                }
                                , new Point()
                                {
                                    x = 0, y = 3, z = 1
                                } };
     inData = new BmObj()
     {
         points = pointsBm, xAxis = 20, yAxis = 10, zAxis = 10, xElPos = 1, yElPos = 4, zElPos = 4
     };
 }
示例#4
0
        public TestMyService()
        {
            Point [] pointsDh = new [] { new Point()
                                         {
                                             x = 1, y = 2, z = 3, cr = 1, info = "test"
                                         }
                                         , new Point()
                                         {
                                             x = 2, y = 3, z = 4, cr = 2, info = "test"
                                         }
                                         , new Point()
                                         {
                                             x = 3, y = 4, z = 5, cr = 3, info = "test"
                                         } };
            Point[] pointsBm = new[] { new Point()
                                       {
                                           x = 2, y = 3, z = 4
                                       }
                                       , new Point()
                                       {
                                           x = 3, y = 4, z = 5
                                       }
                                       , new Point()
                                       {
                                           x = 5, y = 5, z = 4
                                       } };
            DhObj inDh = new DhObj()
            {
                points = pointsDh
            };
            BmObj inBm = new BmObj()
            {
                points = pointsBm, xAxis = 20, yAxis = 10, zAxis = 10, xElPos = 1, yElPos = 4, zElPos = 4
            };

            inData = new DhBmObj()
            {
                dh = inDh, bm = inBm
            };
        }