Пример #1
0
        public void Get_Office2007_Painter()
        {
            control.SetThemeAvailability(true);
            control.Theme = ThemeTypes.Office2007;

            IFAPainter painter = FAPainterFactory.GetPainter(control);

            Assert.That(painter, Is.TypeOf(typeof(FAPainterOffice2007)));
        }
Пример #2
0
        public void Get_WindowsXP_Painter()
        {
            control.SetThemeAvailability(true);
            control.Theme = ThemeTypes.WindowsXP;

            IFAPainter painter = FAPainterFactory.GetPainter(control);

            Assert.That(painter, Is.TypeOf(typeof(FAPainterWindowsXP)));
        }
Пример #3
0
        public void Get_Office2000_Painter_With_Themes_Unavailable()
        {
            control.SetThemeAvailability(false);
            control.Theme = ThemeTypes.Office2007;

            IFAPainter painter = FAPainterFactory.GetPainter(control);

            Assert.That(painter, Is.TypeOf(typeof(FAPainterOffice2000)));
        }