Esempio n. 1
0
        public void constructor_sets_up_the_default_content_sources_for_each_file()
        {
            var files = new AssetFile[] {
                new AssetFile("something.js")
                {
                    FullPath = "something.js"
                },
                new AssetFile("something2.js")
                {
                    FullPath = "something2.js"
                },
                new AssetFile("something3.js")
                {
                    FullPath = "something3.js"
                },
                new AssetFile("something4.js")
                {
                    FullPath = "something4.js"
                },
            };

            var plan = new ContentPlan("a plan", files);

            plan.GetAllSources().ShouldHaveTheSameElementsAs(files.Select(x => new FileRead(x)));
        }