Esempio n. 1
0
        public void Setup()
        {
            string[][] trackers = new string[][] {
                new string [] {
                    "custom://tracker1.com/announce",
                    "custom://tracker2.com/announce",
                    "custom://tracker3.com/announce",
                    "custom://tracker4.com/announce"
                },
                new string[] {
                    "custom://tracker5.com/announce",
                    "custom://tracker6.com/announce",
                    "custom://tracker7.com/announce",
                    "custom://tracker8.com/announce"
                }
            };

            rig = TestRig.CreateTrackers(trackers);

            rig.RecreateManager();
            trackerManager = rig.Manager.TrackerManager;
            this.trackers  = new List <List <CustomTracker> >();
            foreach (TrackerTier t in trackerManager)
            {
                List <CustomTracker> list = new List <CustomTracker>();
                foreach (Tracker.Tracker tracker in t)
                {
                    list.Add((CustomTracker)tracker);
                }
                this.trackers.Add(list);
            }
        }
        public void FixtureSetup()
        {
            string[][] trackers = new string[][] {
                new string [] {
                    "custom://tracker1.com/announce",
                    "custom://tracker2.com/announce",
                    "custom://tracker3.com/announce",
                    "custom://tracker4.com/announce"
                },
                new string[] {
                    "custom://tracker5.com/announce",
                    "custom://tracker6.com/announce",
                    "custom://tracker7.com/announce",
                    "custom://tracker8.com/announce"
                }
            };

            rig = TestRig.CreateTrackers(trackers);
        }