Inheritance: ITorrentFileSource
コード例 #1
0
        public void IllegalDestinationPath()
        {
            var source = new CustomFileSource(new List <FileMapping> {
                new FileMapping("a", "../../dest1"),
            });

            new TorrentCreator().Create(source);
        }
コード例 #2
0
        public void TwoFilesSameDestionation()
        {
            var source = new CustomFileSource(new List <FileMapping> {
                new FileMapping("a", "dest1"),
                new FileMapping("b", "dest2"),
                new FileMapping("c", "dest1"),
            });

            new TorrentCreator().Create(source);
        }