Example #1
0
        public void ForConstructorTrueAndTextNUllShouldReturnnull()
        {
            var    isTrue = new PasswordText("true");
            IMatch actual = isTrue.Match(null);

            Assert.Null(actual.RemainingText());
        }
Example #2
0
        public void ForConstructorFalseAndTextFalseShouldReturnTrue()
        {
            var    isFalse = new PasswordText("false");
            IMatch actual  = isFalse.Match("false");

            Assert.True(actual.Succes());
        }
Example #3
0
        public void ForConstructorTrueAndTextEmptyStringShouldReturnEmptyString()
        {
            var    isTrue = new PasswordText("true");
            IMatch actual = isTrue.Match(string.Empty);

            Assert.Equal(string.Empty, actual.RemainingText());
        }
Example #4
0
        public void ForConstructorTrueAndTextNullShouldReturnFalse()
        {
            var    isTrue = new PasswordText("true");
            IMatch actual = isTrue.Match(null);

            Assert.False(actual.Succes());
        }
Example #5
0
        public void ForConstructorTrueAndTextFalseShouldReturnTextfalse()
        {
            var    isTrue = new PasswordText("true");
            IMatch actual = isTrue.Match("false");

            Assert.Equal("false", actual.RemainingText());
        }
Example #6
0
        public void ConstructorTrueAndTextTrueShouldReturnTrue()
        {
            var    isTrue = new PasswordText("true");
            IMatch actual = isTrue.Match("true");

            Assert.True(actual.Succes());
        }
Example #7
0
        public void ForConstructorEmptyStringAndTextNullShouldReturnnull()
        {
            var    isFalse = new PasswordText(string.Empty);
            IMatch actual  = isFalse.Match(null);

            Assert.Null(actual.RemainingText());
        }
Example #8
0
        public void ForConstructorTrueAndTextTruexShouldReturnx()
        {
            var    isTrue = new PasswordText("true");
            IMatch actual = isTrue.Match("truex");

            Assert.Equal("x", actual.RemainingText());
        }
Example #9
0
        public void ForConstructorEmptyStringAndTextTrueShouldReturnTextTrue()
        {
            var    isFalse = new PasswordText(string.Empty);
            IMatch actual  = isFalse.Match("true");

            Assert.Equal("true", actual.RemainingText());
        }
Example #10
0
        public void ForConstructorEmptyStringAndTextNullShouldReturnFalse()
        {
            var    isFalse = new PasswordText(string.Empty);
            IMatch actual  = isFalse.Match(null);

            Assert.False(actual.Succes());
        }
Example #11
0
        public void ForConstructorEmptyStringAndTextTrueShouldReturnTrue()
        {
            var    isFalse = new PasswordText(string.Empty);
            IMatch actual  = isFalse.Match("true");

            Assert.True(actual.Succes());
        }
Example #12
0
        public void ForConstructorFalseAndTextNullShouldReturnNull()
        {
            var    isFalse = new PasswordText("false");
            IMatch actual  = isFalse.Match(null);

            Assert.Null(actual.RemainingText());
        }
Example #13
0
        public void ForConstructorFalseAndTextEmptyStringShouldReturnFalse()
        {
            var    isFalse = new PasswordText("false");
            IMatch actual  = isFalse.Match(string.Empty);

            Assert.False(actual.Succes());
        }
Example #14
0
        public void ForConstructorFalseAndTextFalsexShouldReturnTextx()
        {
            var    isFalse = new PasswordText("false");
            IMatch actual  = isFalse.Match("falsex");

            Assert.Equal("x", actual.RemainingText());
        }
Example #15
0
        public void ForConstructorFalseAndTextFalseShouldReturnTextEmprtyString()
        {
            var    isFalse = new PasswordText("false");
            IMatch actual  = isFalse.Match("false");

            Assert.Equal(string.Empty, actual.RemainingText());
        }