Пример #1
0
        public void sets_names()
        {
            theGraph.AddToSet("setA", "a-1.js");
            theGraph.AddToSet("setA", "a-2.js");
            theGraph.AddToSet("setB", "b-1.js");
            theGraph.AddToSet("setB", "b-2.js");

            var sets = new List <string>();

            theGraph.ForEachSetName(sets.Add);

            sets.ShouldEqual(new[] { "setA", "setB" });
        }