Example #1
0
        public void GetGamerByIndicator_GivenNoGamer_ExpectException()
        {
            //Arrange
            var agniKai = new AgniKai {
                Ticket = "Ticket"
            };

            //Act && Assert
            Assert.Throws <InvalidOperationException>(() => agniKai.GetGamerByIndicator(Field.O));
        }
Example #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);
        }