Пример #1
0
        public void ParseAsyncは内部パーサーと同じように失敗します()
        {
            var cursol = new Cursol("public");
            var parser = new CharParser('a');
            var tested = new DebugParser <char>(parser, () => { });

            (tested.Parse(cursol)).IsStructuralEqual(parser.Parse(cursol));
        }
Пример #2
0
        public void ParseAsyncは指定したActionを呼びます()
        {
            bool isActioned = false;
            var  cursol     = new Cursol("public");
            var  parser     = new CharParser('a');
            var  tested     = new DebugParser <char>(parser, () => { isActioned = true; });

            isActioned.IsFalse();
            tested.Parse(cursol);
            isActioned.IsTrue();
        }