コード例 #1
0
ファイル: PlayMatch.cs プロジェクト: dtryon/tennis
        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;
        }
コード例 #2
0
ファイル: PlayMatch.cs プロジェクト: war-man/tennis
        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;
        }
コード例 #3
0
 public void Constructor_Null_PlayGame_Contract_Checked()
 {
     //Act
     target = new PlaySet(null);
 }
コード例 #4
0
 public void TearDown()
 {
     playGame.Verify();
     target = null;
 }
コード例 #5
0
 public void Setup()
 {
     playGame = new Mock <IPlayGame>();
     target   = new PlaySet(playGame.Object);
 }
コード例 #6
0
ファイル: PlaySetTest.cs プロジェクト: dtryon/tennis
 public void TearDown()
 {
     playGame.Verify();
     target = null;
 }
コード例 #7
0
ファイル: PlaySetTest.cs プロジェクト: dtryon/tennis
 public void Setup()
 {
     playGame = new Mock<IPlayGame>();
     target = new PlaySet(playGame.Object);
 }
コード例 #8
0
ファイル: PlaySetTest.cs プロジェクト: dtryon/tennis
 public void Constructor_Null_PlayGame_Contract_Checked()
 {
     //Act
     target = new PlaySet(null);
 }
コード例 #9
0
 public void CleanupTestMethod()
 {
     _playGame.Verify();
     _target = null;
 }
コード例 #10
0
 public void SetupTestMethod()
 {
     _playGame = new Mock <IPlayGame>();
     _target   = new PlaySet(_playGame.Object);
 }
コード例 #11
0
ファイル: PlayMatch.cs プロジェクト: skcodesamples/TennisTest
 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");
 }