Exemple #1
0
        public void TryMatch_GivenZero_Matches()
        {
            var token = new Token
            {
                Raw = new List <string>
                {
                    { " _ " },
                    { "| |" },
                    { "|_|" }
                }
            };

            var zr = new ZeroRecogniser();

            var result = zr.TryMatch(token);

            Assert.That(result.Item1, Is.True);
        }
Exemple #2
0
        public void TryMatch_GivenZero_Matches()
        {
            var token = new Token
            {
                Raw = new List<string>
                {
                    {" _ "},
                    {"| |"},
                    {"|_|"}
                }
            };

            var zr = new ZeroRecogniser();

            var result = zr.TryMatch(token);

            Assert.That(result.Item1, Is.True);
        }