Esempio n. 1
0
        public void Are_Invalid_WhenWhenValid_ShouldReturnFalse()
        {
            //---------------Arrange-------------------
            var tokens = new[] { "user", "pass" };
            var sut    = new BasicAuthenticationTokens(tokens);
            //---------------Act----------------------
            var actual = sut.Are_Invalid();

            //---------------Assert-----------------------
            actual.Should().BeFalse();
        }
Esempio n. 2
0
        public void Are_Invalid_WhenWhenInvalid_ShouldReturnFalse(string token1, string token2)
        {
            //---------------Arrange-------------------
            var tokens = new[] { token1, token2 };

            var sut = new BasicAuthenticationTokens(tokens);
            //---------------Act----------------------
            var actual = sut.Are_Invalid();

            //---------------Assert-----------------------
            actual.Should().BeTrue();
        }