public PlayMatch(IPlaySet playSet, ISide sideOne, ISide sideTwo) { if (playSet == null) { throw new ArgumentNullException("playSet"); } if (sideOne == null) { throw new ArgumentNullException("sideOne"); } if (sideTwo == null) { throw new ArgumentNullException("sideTwo"); } this.sideOne = sideOne; this.sideTwo = sideTwo; this.playSet = playSet; }
public void Constructor_Null_PlayGame_Contract_Checked() { //Act target = new PlaySet(null); }
public void TearDown() { playGame.Verify(); target = null; }
public void Setup() { playGame = new Mock <IPlayGame>(); target = new PlaySet(playGame.Object); }
public void Setup() { playGame = new Mock<IPlayGame>(); target = new PlaySet(playGame.Object); }
public void CleanupTestMethod() { _playGame.Verify(); _target = null; }
public void SetupTestMethod() { _playGame = new Mock <IPlayGame>(); _target = new PlaySet(_playGame.Object); }
public PlayMatch(IPlaySet playSet, ITeam sideOne, ITeam sideTwo) { TeamOne = sideOne ?? throw new ArgumentNullException("sideOne"); TeamTwo = sideTwo ?? throw new ArgumentNullException("sideTwo"); _playSet = playSet ?? throw new ArgumentNullException("playSet"); }