public void ContainsTest() { var target = new Compilers("Directory"); Assert.AreEqual(target.Count, 0); var newCompiler = new Compiler(); newCompiler.Name = "CPP"; target.AddCompiler(newCompiler); var result = target.Contains("CPP"); Assert.AreEqual(true, result); result = target.Contains("BadCompilerName"); Assert.AreEqual(result, false); }