public void GetVictimTest()
        {
            var manager = new SubClueManager();
            var rng = Extensions.RandomGenerator = new Random(1);
            IList<string> zoo = new List<string> { "wrench", "killer", "abstract" };

            Assert.AreEqual("killer", manager.GetVictimName(zoo, "wrench"));
            Assert.AreEqual("abstract", manager.GetVictimName(zoo, "killer"));
            Assert.AreEqual("wrench", manager.GetVictimName(zoo, "abstract"));
        }
        public void GetNightActivitySetsVictim()
        {
            var manager = new SubClueManager();
            var rng = Extensions.RandomGenerator = new Random(1);
            IList<string> zoo = new List<string> { "wrench", "killer", "abstract" };

            IList<string> text1 = manager.GetNightActivity(zoo, "killer");
            var expectedVictim = manager.GetVictimName(zoo, "killer");

            Assert.AreEqual(expectedVictim, manager.Victim);
        }
        public void GetDayActivityTest()
        {
            var manager = new SubClueManager();
            var rng = Extensions.RandomGenerator = new Random(1);
            IList<string> zoo = new List<string> { "wrench", "killer", "abstract" };

            var clues1 = manager.GetDayActivity(zoo, "killer");

            Assert.AreEqual(2, clues1.Count(x => x.Contains(zoo[0])));
            Assert.AreEqual(2, clues1.Count(x => x.Contains(zoo[1])));
            Assert.AreEqual(2, clues1.Count(x => x.Contains(zoo[2])));

            rng = Extensions.RandomGenerator = new Random(2);
            var clues2 = manager.GetDayActivity(zoo, "killer");

            Assert.AreEqual(2, clues2.Count(x => x.Contains(zoo[0])));
            Assert.AreEqual(2, clues2.Count(x => x.Contains(zoo[1])));
            Assert.AreEqual(2, clues2.Count(x => x.Contains(zoo[2])));

            Assert.IsFalse(clues1.SequenceEqual(clues2));
        }
        public void KillerNotInZooGetsEmptyList()
        {
            var manager = new SubClueManager();
            var rng = Extensions.RandomGenerator = new Random(1);
            IList<string> zoo = new List<string> { "wrench", "killer", "abstract" };

            var clues = manager.GetDayActivity(zoo, "albacore");
            Assert.AreEqual(0, clues.Count);
        }