コード例 #1
0
                public void WhenHeaderShouldNotBeSpecified_ReturnsFalse(string algorithmName)
                {
                    var sut    = new CustomSignatureAlgorithm(algorithmName);
                    var actual = sut.ShouldIncludeExpiresHeader();

                    actual.Should().BeFalse();
                }
コード例 #2
0
                public void WhenHeaderShouldNotBeSpecified_ReturnsFalse()
                {
                    var sut    = new CustomSignatureAlgorithm("hs2019");
                    var actual = sut.ShouldIncludeDateHeader();

                    actual.Should().BeFalse();
                }
コード例 #3
0
                public void WhenHeaderShouldBeSpecified_ReturnsTrue()
                {
                    var sut    = new CustomSignatureAlgorithm("hs2019");
                    var actual = sut.ShouldIncludeCreatedHeader();

                    actual.Should().BeTrue();
                }
コード例 #4
0
                public void WhenHeaderShouldBeSpecified_ReturnsTrue(string algorithmName)
                {
                    var sut    = new CustomSignatureAlgorithm(algorithmName);
                    var actual = sut.ShouldIncludeDateHeader();

                    actual.Should().BeTrue();
                }