Exemplo n.º 1
0
 public override void Initialize()
 {
     Transportable = new Child();
 }
Exemplo n.º 2
0
        public void ChildrenTest()
        {
            Player player = new Player();
            player.Initialize();
            Transport worthlessCar = new Transport(TransportType.Car, String.Empty, 100, null, null, 0);
            Assert.AreEqual(AssetResponse.AddedSuccessfully, player.Accept(worthlessCar));

            Asset wive = new Partner();
            Asset child = new Child();

            Assert.AreEqual(AssetResponse.HasNoPartner, player.Accept(child));
            Assert.AreEqual(AssetResponse.AddedSuccessfully, player.Accept(wive));
            Assert.AreEqual(AssetResponse.AddedSuccessfully, player.Accept(child));
        }