示例#1
0
        public void Start_TheGame_Score_ShouldBe_Zero_Zero()
        {
            // Arrange
            var service = new TennisService();

            // Act
            Score score = service.Get();

            // Assert
            Assert.IsNotNull(score);
            score.Player1.Id.Should().Be(1);
            score.Player1.Name.Should().Be("Nadal");
            score.Player1.PlayerGamePoint.Should().Be(GamePoint.zero);

            score.Player2.Id.Should().Be(2);
            score.Player2.Name.Should().Be("Federer");
            score.Player2.PlayerGamePoint.Should().Be(GamePoint.zero);
        }