Clusterizator.Tests.Krab.Calculators.LinearCalculatorTests.TwoPoints3DTest C# (CSharp) Метод

TwoPoints3DTest() приватный Метод

private TwoPoints3DTest ( ) : void
Результат void
        public void TwoPoints3DTest()
        {
            var node1 = new GraphElement(new[] { 15.0, 1.0, -20.0 }, "node1");
            var node2 = new GraphElement(new[] { 0.0, -3.0, -4.0 }, "node2");

            var el = new List<GraphElement> { node1, node2 };

            var conn1 = new Connection(0, 1);

            var con = new List<Connection> { conn1 };

            var gm = new GraphManager(con, el);

            var calculator = new LinearCalculator();
            calculator.Calculate(gm);
            Assert.AreEqual(22293, Math.Round(gm.Connections[0].Distance * 1000));
        }