Example #1
0
        public void NodesIsNotAList()
        {
            var dict = torrent.ToDictionary();

            dict["nodes"] = new BEncodedString("192.168.0.1:12345");
            torrent       = Torrent.Load(dict);
            Assert.IsNull(torrent.Nodes, "#1");
        }
Example #2
0
 public EditableTorrent(Torrent torrent)
 {
     Check.Torrent(torrent);
     Initialise(torrent.ToDictionary());
 }