コード例 #1
0
        public void TestDuckDuckGoSearchReturnsValues()
        {
            var engine = new Core.SearchEngine();
            var result = engine.SearchOnDuckDuckGo("Java");

            Assert.AreNotEqual(0, result, "No results");
        }
コード例 #2
0
        public void TestDuckDuckGoSearchGreaterThanCero()
        {
            var engine = new Core.SearchEngine();
            var result = engine.SearchOnDuckDuckGo("Java");

            Assert.IsTrue(result > 0, "Result cannot be negative");
        }