Exemple #1
0
        private void TestFavoriteColors(IColorsLabController colorsLab)
        {
            // Clear the favorite colors panel
            colorsLab.ClearFavoriteColors();
            List <Color> currentFavoritePanel = colorsLab.GetCurrentFavoritePanel();

            AssertEqual(AllWhiteColorList, currentFavoritePanel);

            // Load the test case
            colorsLab.LoadFavoriteColors(
                PathUtil.GetDocTestPresentationPath("ColorsLab\\FavoriteColorsTest.thm"));
            currentFavoritePanel = colorsLab.GetCurrentFavoritePanel();
            AssertEqual(DefaultTestColors, currentFavoritePanel);

            // Clear panel
            colorsLab.ClearFavoriteColors();
            currentFavoritePanel = colorsLab.GetCurrentFavoritePanel();
            AssertEqual(AllWhiteColorList, currentFavoritePanel);
        }