コード例 #1
0
ファイル: IARouteTest.cs プロジェクト: ase-lab/IntAirActCS
 public void EqualsDifferentResourceTest()
 {
     IARoute route = new IARoute("GET", "/example");
     IARoute other = new IARoute("GET", "/example2");
     Assert.IsFalse(route.Equals(other));
     Assert.AreNotEqual(route.GetHashCode(), other.GetHashCode());
 }
コード例 #2
0
ファイル: IARouteTest.cs プロジェクト: ase-lab/IntAirActCS
 public void EqualsActionIsNullTest()
 {
     IARoute route = new IARoute(null, "/example");
     IARoute other = new IARoute("GET", "/example2");
     Assert.IsFalse(route.Equals(other));
     Assert.AreNotEqual(route.GetHashCode(), other.GetHashCode());
 }
コード例 #3
0
ファイル: IARouteTest.cs プロジェクト: ase-lab/IntAirActCS
 public void EqualsSelfTest()
 {
     IARoute route = new IARoute("GET", "/example");
     IARoute other = route;
     Assert.IsTrue(route.Equals(other));
     Assert.AreEqual(route.GetHashCode(), other.GetHashCode());
 }
コード例 #4
0
ファイル: IARouteTest.cs プロジェクト: ase-lab/IntAirActCS
 public void EqualsNullTest()
 {
     IARoute route = new IARoute("GET", "/example");
     IARoute other = null;
     Assert.IsFalse(route.Equals(other));
 }