public void Get_WindowsXP_Painter()
        {
            control.SetThemeAvailability(true);
            control.Theme = ThemeTypes.WindowsXP;

            IFAPainter painter = FAPainterFactory.GetPainter(control);

            Assert.That(painter, Is.TypeOf(typeof(FAPainterWindowsXP)));
        }
        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)));
        }
        public void Get_Office2007_Painter()
        {
            control.SetThemeAvailability(true);
            control.Theme = ThemeTypes.Office2007;

            IFAPainter painter = FAPainterFactory.GetPainter(control);

            Assert.That(painter, Is.TypeOf(typeof(FAPainterOffice2007)));
        }
 public void Get_Theme_For_Invalid_Control_Throws()
 {
     Assert.Throws(typeof(InvalidOperationException), () => FAPainterFactory.GetPainter(null));
 }