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"); }
public EditableTorrent(Torrent torrent) { Check.Torrent(torrent); Initialise(torrent.ToDictionary()); }