protected void printClassifiedNames(StreamWriter pw, bool showRank) { foreach (var s in option.GetClassifiedNames()) { pw.Write("\t" + s); if (showRank) { pw.Write("\t" + s + "_rank"); } } }
public void TestGetClassifiedNames() { DistributionOption option = new DistributionOption(); option.ClassificationSet["A"] = new List <string> (new string[] { "1", "2", "3" }); option.ClassificationSet["B"] = new List <string> (new string[] { "4", "5", "6" }); string[] actual = option.GetClassifiedNames(); Assert.AreEqual(new string[] { "A", "B" }, actual); }