Exemplo n.º 1
0
        public void GetGamerByIndicator_GivenNoGamer_ExpectException()
        {
            //Arrange
            var agniKai = new AgniKai {
                Ticket = "Ticket"
            };

            //Act && Assert
            Assert.Throws <InvalidOperationException>(() => agniKai.GetGamerByIndicator(Field.O));
        }
Exemplo n.º 2
0
        public void GetGamerByIndicator_GivenGamerExists_ExpectGamer()
        {
            //Arrange
            var gamer = new AI {
                Indicator = Field.O
            };
            var agniKai = new AgniKai {
                Ticket = "Ticket"
            };

            //Act
            agniKai.AddGamer(gamer);

            //Assert
            agniKai.GetGamerByIndicator(Field.O).ShouldBeEquivalentTo(gamer);
        }