Exemple #1
0
        public void test_defaultView_DoesNothing_WhenPassedNull()
        {
            ViewConfiguration configuration = new ViewConfiguration();

            configuration.SetDefaultView(null);
            Assert.Null(configuration.DefaultView);
        }
Exemple #2
0
        public void test_defaultView()
        {
            SystemLandscapeView view          = Views.CreateSystemLandscapeView("key", "Description");
            ViewConfiguration   configuration = new ViewConfiguration();

            configuration.SetDefaultView(view);
            Assert.Equal("key", configuration.DefaultView);
        }