Пример #1
0
        public void exist_engines()
        {
            // arrange
            var factory         = new SearchEngineFactory();
            var expectedEngines = new string[] { "Bing", "Google" };

            // act
            var existEngines = factory.GetSearchEngines()
                               .Keys.Select(k => k);

            // assert
            Assert.IsTrue(existEngines.SequenceEqual(expectedEngines));
        }