Example #1
0
        public async Task CanParseEmptyListAsync(string bencode, IBencodeParser bparser)
        {
            var parser = new BListParser(bparser);
            var blist  = await parser.ParseStringAsync(bencode);

            blist.Count.Should().Be(0);
            await bparser.DidNotReceive().ParseAsync(Arg.Any <PipeBencodeReader>());
        }
Example #2
0
        public void CanParseEmptyList(string bencode, IBencodeParser bparser)
        {
            var parser = new BListParser(bparser);
            var blist  = parser.ParseString(bencode);

            blist.Count.Should().Be(0);
            bparser.DidNotReceive().Parse(Arg.Any <BencodeReader>());
        }