public void GetGamerByIndicator_GivenNoGamer_ExpectException() { //Arrange var agniKai = new AgniKai { Ticket = "Ticket" }; //Act && Assert Assert.Throws <InvalidOperationException>(() => agniKai.GetGamerByIndicator(Field.O)); }
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); }