Example #1
0
        public void TestConstructor()
        {
            var mafia     = new MafiaRole();
            var doctor    = new DoctorRole();
            var citizen   = new PeacefulRole();
            var localCity = new City(new List <IPerson>(
                                         new[]
            {
                new Person(citizen, doctor, "Bob"),
                new Person(citizen, mafia, "Alice"),
                new Person(citizen, null, "Ira"),
            }), Settings.Deadly.CityName);

            localCity.Roles.Count.Should().Be(3);
            localCity.Roles.Should().BeEquivalentTo(citizen, mafia, doctor);
        }
 public void AssignRole(MafiaRole role)
 {
     this.role = role;
 }