Esempio n. 1
0
        public void TestCannotEmployNonConstructableRenderer()
        {
            FlatGuiVisualizer.ControlRendererEmployer employer =
                new FlatGuiVisualizer.ControlRendererEmployer();

            Assert.IsFalse(employer.CanEmploy(typeof(NonConstructableRenderer)));
        }
Esempio n. 2
0
        public void TestEmployAmbiguousRenderers()
        {
            FlatGuiVisualizer.ControlRendererEmployer employer =
                new FlatGuiVisualizer.ControlRendererEmployer();

            employer.Employ(typeof(LabelControlRenderer1));
            employer.Employ(typeof(LabelControlRenderer2));
        }