public void WithoutClassesTest() { var classifier = new IgnoredClassifier(); var result = classifier.Classify("without", "classes"); Assert.NotNull(result); Assert.AreEqual(0, result.Count); }
public void IgnoredFeatureTest() { var c = new IgnoredClassifier(); c.Classes.Add(new StringClass("empty") { "nop" }); c.IgnoredFeatures.Add("1"); c.IgnoredFeatures.Add("z"); var r = c.Classify(new[] { "1", "a", "z", "b", "1", "c" }); Assert.Pass(); }