Esempio n. 1
0
        public void Vertices_EmptyMtg_ReturnsEmptyList()
        {
            mtg tree = new mtg();

            CollectionAssert.AreEqual(tree.Vertices(1), new List <int>()
            {
            });
        }
Esempio n. 2
0
        public void Vertices_NormalMtg_ReturnsListOfVertices()
        {
            mtg tree = new mtg();

            tree.scale.Add(1, 1);
            tree.scale.Add(2, 1);
            tree.scale.Add(3, 3);
            tree.scale.Add(4, 5);

            CollectionAssert.AreEqual(tree.Vertices(1), new List <int>()
            {
                1, 2
            });
            CollectionAssert.AreEqual(tree.Vertices(3), new List <int>()
            {
                3
            });
        }