예제 #1
0
        public void GetNextGamerId_GivenEmptyAgniKai_ShouldReturnOne()
        {
            //Arrange
            var agniKai = new AgniKai {
                Ticket = string.Empty
            };

            //Act && Assert
            Assert.AreEqual(1, agniKai.GetNextGamerId());
        }
예제 #2
0
        public void GetNextGamerId_GivenAgniKaiWithOneGamer_ShouldReturnTwo()
        {
            //Arrange
            var agniKai = new AgniKai {
                Ticket = string.Empty
            };

            //Act
            agniKai.AddGamer(new AI {
                AgniKaiTicket = string.Empty, Name = "gamer_1"
            });

            //Assert
            Assert.AreEqual(2, agniKai.GetNextGamerId());
        }