Пример #1
0
        public async Task GetStyleTag_ValidFallbackBundle_ShouldReturnStyleTag()
        {
            // Arrange
            var fixture = new GetStyleTagFixture(AssetServiceBaseFixture.InvalidBundle, AssetServiceBaseFixture.ValidFallbackBundleWithoutExtension);

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

            // Assert
            fixture.VerifyFallbackExisting(result);
        }
Пример #2
0
        public async Task GetStyleTag_ValidBundleWithExtension_ShouldReturnStyleTag()
        {
            // Arrange
            var fixture = new GetStyleTagFixture(GetStyleTagFixture.ValidBundleWithExtension);

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

            // Assert
            fixture.VerifyExisting(result);
        }
Пример #3
0
        public async Task GetStyleTag_InvalidFallbackBundle_ShouldReturnEmptyHtmlString()
        {
            // Arrange
            var fixture = new GetStyleTagFixture(AssetServiceBaseFixture.InvalidBundle, AssetServiceBaseFixture.InvalidBundle);

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

            // Assert
            fixture.VerifyFallbackNonExisting(result);
        }
Пример #4
0
        public async Task GetStyleTag_EmptyString_ShouldReturnEmptyHtmlString()
        {
            // Arrange
            var fixture = new GetStyleTagFixture(string.Empty);

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

            // Assert
            fixture.VerifyEmpty(result);
        }