public void Contructor_Twenty20_SetsVisitingTeam() { // arrange var visitingTeam = new Team(); visitingTeam.Name = "VisitingTeam"; var expectedResult = visitingTeam; // act var game = new Twenty20Game(new Team(), visitingTeam); var actualResult = game.VisitingTeam; // assert Assert.Equal<ITeam>(expectedResult, actualResult); }
public void Contructor_Twenty20_SetsHomeTeam() { // arrange var homeTeam = new Team(); homeTeam.Name = "HomeTeam"; var expectedResult = homeTeam; // act var game = new Twenty20Game(homeTeam, new Team()); var actualResult = game.HomeTeam; // assert Assert.Equal<ITeam>(expectedResult, actualResult); }