Clusterizator.Tests.Krab.GraphManagerTests.Initialization C# (CSharp) Méthode

Initialization() private méthode

private Initialization ( ) : void
Résultat void
        public void Initialization()
        {
            elementsList = new List<GraphElement>
                               {
                                   new GraphElement(new[] { 2.0, 3.0 }, "1"),
                                   new GraphElement(new[] { 3.0, 5.0 }, "2"),
                                   new GraphElement(new[] { 6.0, 2.0 }, "3"),
                                   new GraphElement(new[] { 6.0, 5.0 }, "4"),
                                   new GraphElement(new[] { 7.0, 4.0 }, "5"),
                                   new GraphElement(new[] { 8.0, 3.0 }, "6")
                               };

            connectionsList = new List<Connection>
                                  {
                                      new Connection(0, 1),
                                      new Connection(0, 2),
                                      new Connection(0, 3),
                                      new Connection(0, 4),
                                      new Connection(0, 5),
                                      new Connection(1, 2),
                                      new Connection(1, 3),
                                      new Connection(1, 4),
                                      new Connection(1, 5),
                                      new Connection(2, 3),
                                      new Connection(2, 4),
                                      new Connection(2, 5),
                                      new Connection(3, 4),
                                      new Connection(3, 5),
                                      new Connection(4, 5)
                                  };

            connectionsList[0].Connected = true;
            connectionsList[14].Connected = true;
            elementsList[0].TaxonNumber = 1;
            elementsList[1].TaxonNumber = 1;
            elementsList[4].TaxonNumber = 2;
            elementsList[5].TaxonNumber = 2;
        }