コード例 #1
0
        public void SetUp()
        {
            theRegistration = MockRepository.GenerateMock <IAssetRegistration>();
            theRegistry     = new FubuRegistry();

            theExpression = new AssetsExpression(theRegistry, theRegistration);
        }
コード例 #2
0
        public void SetUp()
        {
            theRegistration = MockRepository.GenerateMock<IAssetRegistration>();
            theRegistry = new FubuRegistry();

            theExpression = new AssetsExpression(theRegistry, theRegistration);
        }
コード例 #3
0
        public void using_the_configure_method()
        {
            var graph      = new AssetGraph();
            var expression = new AssetsExpression(theRegistry, graph);

            expression.Configure(@"
crud includes a.js, b.js, c.js
");

            graph.CompileDependencies(new PackageLog());

            graph.AssetSetFor("crud").AllFileDependencies()
            .Select(x => x.Name)
            .ShouldHaveTheSameElementsAs("a.js", "b.js", "c.js");
        }
コード例 #4
0
        public void using_the_configure_method()
        {
            var graph = new AssetGraph();
            var expression = new AssetsExpression(theRegistry, graph);

            expression.Configure(@"
            crud includes a.js, b.js, c.js
            ");

            graph.CompileDependencies(new PackageLog());

            graph.AssetSetFor("crud").AllFileDependencies()
                .Select(x => x.Name)
                .ShouldHaveTheSameElementsAs("a.js", "b.js", "c.js");
        }