public void InstallsPlayerAndHand() { var player = new Player(); var play = new ThrowPlay(player); Assert.AreEqual(player, play.Player); }
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)); }