コード例 #1
0
        public AppHelperTester()
        {
            InitializeComponent();

            foreach (string appHelperName in factory.GetAppHelperNames())
            {
                drpHelperNames.Items.Add(appHelperName);
            }
        }
コード例 #2
0
        public void GetAppHelperNamesTest()
        {
            string configFile = appHelperFileName; // TODO: Initialize to an appropriate value

            AppHelperFactory target = new AppHelperFactory(configFile);

            System.Collections.Generic.List <string> expected = new List <string>();
            expected.Add("IMDB");
            // expected.Add("Amazon");
            // expected.Add("metacritic-games");
            // expected.Add("nforce-games");
            System.Collections.Generic.List <string> actual;

            actual = target.GetAppHelperNames();

            Assert.AreEqual(expected.Count, actual.Count);
            foreach (string str in expected)
            {
                Assert.IsTrue(actual.Contains(str));
            }
            //Assert.AreEqual(expected, actual, "Media.BC.AppHelperFactory.GetAppHelperNames did not return the expected value.");
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }