public void ReturnDefaultIgnoredTypes()
        {
            var element = new DiscoverableCollectionElement();
            var ignoredTypes = element.IgnoredTypes;

            Assert.NotNull(ignoredTypes);
            Assert.Empty(ignoredTypes);
        }
        public void GetSetDiscoveryLocation()
        {
            var location = "anything";
            var element = new DiscoverableCollectionElement();
            element.DiscoveryLocation = location;

            Assert.Equal(location, element.DiscoveryLocation);
        }
        public void GetSetIgnoredTypes()
        {
            var types = new TypeElementCollection();

            var element = new DiscoverableCollectionElement();
            element.IgnoredTypes = types;

            Assert.Equal(types, element.IgnoredTypes);
        }
Example #4
0
        public void SetClientScriptsElement()
        {
            var scripts = new DiscoverableCollectionElement(){AutoDiscover = false};

            var section = new Section();

            section.ClientScripts = scripts;

            Assert.Equal(scripts, section.ClientScripts);
        }
        public void GetSetAutoDiscover()
        {
            var ad = false;
            
            var element = new DiscoverableCollectionElement();


            element.AutoDiscover = ad;

            Assert.Equal(ad, element.AutoDiscover);
        }
Example #6
0
        public void GetSetSerializationConverters()
        {
            var section = new Section();

            var element = new DiscoverableCollectionElement { AutoDiscover = false };

            section.SerializationConverters = element;

            Assert.Equal(element, section.SerializationConverters);
        }
Example #7
0
        public void GetSetTabs()
        {
            var section = new Section();

            var element = new DiscoverableCollectionElement(){AutoDiscover = false};

            section.Tabs = element;

            Assert.Equal(element, section.Tabs);
        }
 public void ReturnDefaultAutoDiscoverValue()
 {
     var element = new DiscoverableCollectionElement();
     Assert.True(element.AutoDiscover);
 }
 public void ReturnDefaultDiscoveryLocation()
 {
     var element = new DiscoverableCollectionElement();
     Assert.Empty(element.DiscoveryLocation);
 }