public void CopyTo_should_copy_correct_items()
        {
            _sitemaps.Add("foo", new XmlSiteMap());
            _sitemaps.Add("bar", new XmlSiteMap());

            KeyValuePair<string, SiteMapBase>[] array = new KeyValuePair<string, SiteMapBase>[2];

            _sitemaps.CopyTo(array, 0);

            array.Each(item => Assert.True(_sitemaps.Contains(item)));
        }
Exemple #2
0
        public void CopyTo_should_copy_correct_items()
        {
            _sitemaps.Add("foo", new XmlSiteMap());
            _sitemaps.Add("bar", new XmlSiteMap());

            KeyValuePair <string, SiteMapBase>[] array = new KeyValuePair <string, SiteMapBase> [2];

            _sitemaps.CopyTo(array, 0);

            array.Each(item => Assert.True(_sitemaps.Contains(item)));
        }