public void ShouldHaveCacheKey()
        {
            /* arrange */
            var bundle = new MyScriptBundle();

            /* act */
            var key = bundle.GetCacheKey();

            /* assert */
            key.Should().NotBeNullOrWhiteSpace();
        }
        public void ShouldRenderScriptPointingToBundleWhenOptimizing()
        {
            // arrange
            const string expectedHtml = "<script src=\"/js/bundle.js\"></script>";

            var bundle = new MyScriptBundle();

            // act
            string html = bundle.RenderHtml(true);

            // assert
            html.ShouldBeEquivalentTo(expectedHtml);
        }
        public void ShouldRenderListOfScriptsWhenNotOptimizing()
        {
            // arrange
            var expectedHtml = new StringBuilder();
            expectedHtml.AppendLine("<script src=\"/Content/script1.js\"></script>");
            expectedHtml.AppendLine("<script src=\"/Content/script2.js\"></script>");

            var bundle = new MyScriptBundle();

            // act
            string html = bundle.RenderHtml(false);

            // assert
            html.ShouldBeEquivalentTo(expectedHtml.ToString());
        }