Example #1
0
        public void CanCheckAPlayerAlignedToVillage()
        {
            var moderator = new Moderator();

            moderator.NewPlayer("david", "villager");
            var seer = new Seer(moderator);

            seer.TargetPlayer("david");

            moderator.EndNight();
            Assert.Equal("villager", seer.PlayerAlignment);
        }
Example #2
0
        public void CanCheckAPlayerDiscoverAlignedToWarewolves()
        {
            var moderator = new Moderator();

            moderator.NewPlayer("david", "werewolf");
            var seer = new Seer(moderator);

            seer.TargetPlayer("david");

            moderator.EndNight();
            Assert.Equal("werewolf", seer.PlayerAlignment);
        }
Example #3
0
        public void MultiplePlayersCanBeDistinguished()
        {
            var moderator = new Moderator();

            moderator.NewPlayer("david", "werewolf");
            moderator.NewPlayer("vince", "villager");

            var seer = new Seer(moderator);

            seer.TargetPlayer("david");
            moderator.EndNight();
            Assert.Equal("werewolf", seer.PlayerAlignment);
        }
Example #4
0
        public void BloodLetterCanMarkPlayerAsWolfPack()
        {
            var moderator = new Moderator();

            moderator.NewPlayer("vince", "villager");

            var bloodLetter = new BloodLetter(moderator);
            var seer        = new Seer(moderator);

            seer.TargetPlayer("vince");
            bloodLetter.TargetPlayer("vince");

            moderator.EndNight();
            Assert.Equal("werewolf", seer.PlayerAlignment);
        }
Example #5
0
 public BloodLetter(Moderator moderator)
 {
     _moderator = moderator;
 }
Example #6
0
 public Seer(Moderator moderator)
 {
     _moderator = moderator;
 }