Exemplo n.º 1
0
        public void DragonStartsOffAsNeutralMetricsAsBaby(AbstractTamagotchi dragon)
        {
            "Given a dragon".x(() =>
            {
                dragon = new Tamagotchi("Dragon");
            });

            "When the dragon starts its life".x(() => {});

            "Then the dragon is a baby".x(() =>
            {
                dragon.LifeStage.ShouldBe(LifeStage.Baby);
            });

            "And dragon weight is 7 beautiful kilograms".x(() =>
            {
                dragon.Weight.ShouldBe(7);
            });

            "And dragon happiness is neutral".x(() =>
            {
                dragon.Happiness.ShouldBe(0);
            });

            "And dragon hungriness is neutral".x(() =>
            {
                dragon.Hungriness.ShouldBe(0);
            });
        }
Exemplo n.º 2
0
 public void Satisfy(AbstractTamagotchi tamagotchi)
 {
     tamagotchi.Weight -= 2;
 }
Exemplo n.º 3
0
 public void Dissatisfy(AbstractTamagotchi tamagotchi)
 {
     tamagotchi.Weight += 2;
 }