コード例 #1
0
        public async Task GetScriptTag_ValidFallbackBundleAsync_ShouldReturnAsyncScriptTag()
        {
            // Arrange
            var fixture = new GetScriptTagFixture(AssetServiceBaseFixture.InvalidBundle, AssetServiceBaseFixture.ValidFallbackBundleWithoutExtension, ScriptLoad.Async);

            // Act
            var result = await fixture.GetScriptTagAsync();

            // Assert
            fixture.VerifyFallbackExisting(result);
        }
コード例 #2
0
        public async Task GetLinkTag_ValidFallbackBundleWithExtension_ShouldReturnStyleTag()
        {
            // Arrange
            var fixture = new GetScriptTagFixture(AssetServiceBaseFixture.InvalidBundle, GetScriptTagFixture.ValidFallbackBundleWithExtension);

            // Act
            var result = await fixture.GetScriptTagAsync();

            // Assert
            fixture.VerifyFallbackExisting(result);
        }