コード例 #1
0
        public void ReturnDefaultIgnoredTypes()
        {
            var element = new DiscoverableCollectionElement();
            var ignoredTypes = element.IgnoredTypes;

            Assert.NotNull(ignoredTypes);
            Assert.Empty(ignoredTypes);
        }
コード例 #2
0
        public void GetSetDiscoveryLocation()
        {
            var location = "anything";
            var element = new DiscoverableCollectionElement();
            element.DiscoveryLocation = location;

            Assert.Equal(location, element.DiscoveryLocation);
        }
コード例 #3
0
        public void GetSetIgnoredTypes()
        {
            var types = new TypeElementCollection();

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

            Assert.Equal(types, element.IgnoredTypes);
        }
コード例 #4
0
ファイル: SectionShould.cs プロジェクト: GProulx/Glimpse
        public void SetClientScriptsElement()
        {
            var scripts = new DiscoverableCollectionElement(){AutoDiscover = false};

            var section = new Section();

            section.ClientScripts = scripts;

            Assert.Equal(scripts, section.ClientScripts);
        }
コード例 #5
0
        public void GetSetAutoDiscover()
        {
            var ad = false;
            
            var element = new DiscoverableCollectionElement();


            element.AutoDiscover = ad;

            Assert.Equal(ad, element.AutoDiscover);
        }
コード例 #6
0
ファイル: SectionShould.cs プロジェクト: GProulx/Glimpse
        public void GetSetSerializationConverters()
        {
            var section = new Section();

            var element = new DiscoverableCollectionElement { AutoDiscover = false };

            section.SerializationConverters = element;

            Assert.Equal(element, section.SerializationConverters);
        }
コード例 #7
0
ファイル: SectionShould.cs プロジェクト: GProulx/Glimpse
        public void GetSetTabs()
        {
            var section = new Section();

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

            section.Tabs = element;

            Assert.Equal(element, section.Tabs);
        }
コード例 #8
0
 public void ReturnDefaultAutoDiscoverValue()
 {
     var element = new DiscoverableCollectionElement();
     Assert.True(element.AutoDiscover);
 }
コード例 #9
0
 public void ReturnDefaultDiscoveryLocation()
 {
     var element = new DiscoverableCollectionElement();
     Assert.Empty(element.DiscoveryLocation);
 }