Пример #1
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)));
        }
Пример #2
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)));
        }
Пример #3
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)));
        }
Пример #4
0
 public void Get_Theme_For_Invalid_Control_Throws()
 {
     Assert.Throws(typeof(InvalidOperationException), () => FAPainterFactory.GetPainter(null));
 }