AkkaOfEmpires.Tests.Supervisors.ResourcesSupervisorActor_Should.Increase_FoodAmount_When_FoodGathered_Message_Received C# (CSharp) Méthode

Increase_FoodAmount_When_FoodGathered_Message_Received() private méthode

private Increase_FoodAmount_When_FoodGathered_Message_Received ( ) : void
Résultat void
        public void Increase_FoodAmount_When_FoodGathered_Message_Received()
        {
            var actor = ActorOfAsTestActorRef<ResourcesSupervisorActor>();
            var message = new ResourceGathered(Resource.Food, 10);
            actor.Tell(message);
            actor.UnderlyingActor.ResourcesAmounts[Resource.Food].ShouldBe<uint>(10);
        }