Ejemplo n.º 1
0
 protected void printClassifiedNames(StreamWriter pw, bool showRank)
 {
     foreach (var s in option.GetClassifiedNames())
     {
         pw.Write("\t" + s);
         if (showRank)
         {
             pw.Write("\t" + s + "_rank");
         }
     }
 }
Ejemplo n.º 2
0
        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);
        }