Exemplo n.º 1
0
        public void ShouldSetInitialPlayCount()
        {
            // This is DIRECT TEST of actor class
            // There is no actor system and we can't use any features like
            // stashing, sending, recieving messages
            var actor = new StatisticsActor(null);

            var initStats = new Dictionary <string, int> {
                { "Dark Knight", 10 }
            };

            actor._(new InitialStatisticsMesage(new ReadOnlyDictionary <string, int>(initStats)));

            actor.PlayCounts["Dark Knight"]
            .Should()
            .Be(10);
        }