Пример #1
0
        public void InstallsPlayerAndHand()
        {
            var player = new Player();
            var play   = new ThrowPlay(player);

            Assert.AreEqual(player, play.Player);
        }
Пример #2
0
        public void Describe_ReturnsTextWithPlayerName()
        {
            var name = new Random().Next(10000).ToString("00000");

            var player = new Player
            {
                Name = name
            };
            var play   = new ThrowPlay(player);
            var result = play.Describe();

            Assert.IsFalse(String.IsNullOrWhiteSpace(result));
            Assert.IsTrue(result.Contains(name));
        }