Exemplo n.º 1
0
        public void ForPasswordShouldReturnTrue()
        {
            var    character = new SymbolChar('a');
            IMatch actual    = character.Match("abode>>AB12+-");

            Assert.True(actual.Succes());
        }
Exemplo n.º 2
0
        public void ForNullShouldReturnNull()
        {
            var          character = new SymbolChar('f');
            const string password  = null;
            IMatch       actual    = character.Match(password);

            Assert.Null(actual.RemainingText());
        }
Exemplo n.º 3
0
        public void ForNullShouldReturnFalse()
        {
            var          character = new SymbolChar('f');
            const string password  = null;
            IMatch       actual    = character.Match(password);

            Assert.False(actual.Succes());
        }
Exemplo n.º 4
0
        public void ForEmptyStringShouldReturnEmptyString()
        {
            var          character = new SymbolChar('f');
            const string password  = "";
            IMatch       actual    = character.Match(password);

            Assert.Equal("", actual.RemainingText());
        }
Exemplo n.º 5
0
        public void ForPasswordShouldReturnInput()
        {
            var          character = new SymbolChar('b');
            const string password  = "******";
            IMatch       actual    = character.Match(password);

            Assert.Equal("abode>>AB12+-", actual.RemainingText());
        }
Exemplo n.º 6
0
        public void ForPasswordShouldReturnFalse()
        {
            var          character = new SymbolChar('b');
            const string password  = "******";
            IMatch       actual    = character.Match(password);

            Assert.False(actual.Succes());
        }