예제 #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)));
        }