示例#1
0
        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);
        }