public void AdjacencyList_Should_Be_Equal_To_Colored_Vertices() { AdjacencyList list = new AdjacencyList("2x2onecolor.txt"); var colorsLine = File.ReadLines("2x2onecolor.txt").First(); var colors = colorsLine.Split(new [] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(short.Parse); Assert.AreEqual(list.Count(), colors.Count()); }