コード例 #1
0
ファイル: ShouldlyTest.cs プロジェクト: HK-Zhang/Grains
 public void ShouldBeOfType()
 {
     var theSimpsonsDog = new Cat() { Name = "Santas little helper" };
     theSimpsonsDog.ShouldBeOfType<Dog>();
 }
コード例 #2
0
ファイル: ShouldlyTest.cs プロジェクト: HK-Zhang/Grains
 public void ShouldBe()
 {
     var theSimpsonsCat = new Cat() { Name = "Santas little helper" };
     theSimpsonsCat.Name.ShouldBe("Snowball 2");
 }