Exemple #1
0
        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;
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 public void Constructor_Null_PlayGame_Contract_Checked()
 {
     //Act
     target = new PlaySet(null);
 }
Exemple #4
0
 public void TearDown()
 {
     playGame.Verify();
     target = null;
 }
Exemple #5
0
 public void Setup()
 {
     playGame = new Mock <IPlayGame>();
     target   = new PlaySet(playGame.Object);
 }
Exemple #6
0
 public void TearDown()
 {
     playGame.Verify();
     target = null;
 }
Exemple #7
0
 public void Setup()
 {
     playGame = new Mock<IPlayGame>();
     target = new PlaySet(playGame.Object);
 }
Exemple #8
0
 public void Constructor_Null_PlayGame_Contract_Checked()
 {
     //Act
     target = new PlaySet(null);
 }
Exemple #9
0
 public void CleanupTestMethod()
 {
     _playGame.Verify();
     _target = null;
 }
Exemple #10
0
 public void SetupTestMethod()
 {
     _playGame = new Mock <IPlayGame>();
     _target   = new PlaySet(_playGame.Object);
 }
Exemple #11
0
 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");
 }