コード例 #1
0
ファイル: RecordTest.cs プロジェクト: Geroshabu/Forest
        public void RecordTest1()
        {
            Forest.Record testRecord = new Forest.Record(Person01, Person02);

            Assert.Equal(Person01, testRecord.Player1);
            Assert.Equal(Person02, testRecord.Player2);
        }
コード例 #2
0
ファイル: RecordTest.cs プロジェクト: Geroshabu/Forest
 public void ContainTest3()
 {
     Forest.Record testRecord = new Forest.Record(Person01, Person02);
     //Act
     //Assert
     Assert.Throws <ArgumentNullException>(() =>
                                           { testRecord.Contain(null); });
 }
コード例 #3
0
ファイル: RecordTest.cs プロジェクト: Geroshabu/Forest
 public void ContainTest2()
 {
     Forest.Record testRecord = new Forest.Record(Person01, Person02);
     Assert.False(testRecord.Contain(Person03));
 }
コード例 #4
0
ファイル: RecordTest.cs プロジェクト: Geroshabu/Forest
 public void ContainTest1()
 {
     Forest.Record testRecord = new Forest.Record(Person01, Person02);
     Assert.True(testRecord.Contain(Person01));
     Assert.True(testRecord.Contain(Person02));
 }