コード例 #1
0
ファイル: SimpleTests.cs プロジェクト: annafeldman/agg-sharp
 public void TestGetHashCode()
 {
     {
         RGBA_Bytes a = new RGBA_Bytes(10, 11, 12);
         RGBA_Bytes b = new RGBA_Bytes(10, 11, 12);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         RGBA_Floats a = new RGBA_Floats(10, 11, 12);
         RGBA_Floats b = new RGBA_Floats(10, 11, 12);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         BorderDouble a = new BorderDouble(10, 11, 12, 13);
         BorderDouble b = new BorderDouble(10, 11, 12, 13);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         Point2D a = new Point2D(10, 11);
         Point2D b = new Point2D(10, 11);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         RectangleDouble a = new RectangleDouble(10, 11, 12, 13);
         RectangleDouble b = new RectangleDouble(10, 11, 12, 13);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         RectangleInt a = new RectangleInt(10, 11, 12, 13);
         RectangleInt b = new RectangleInt(10, 11, 12, 13);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
 }
コード例 #2
0
ファイル: SimpleTests.cs プロジェクト: larsbrubaker/agg-sharp
 public void TestGetHashCode()
 {
     {
         Color a = new Color(10, 11, 12);
         Color b = new Color(10, 11, 12);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         ColorF a = new ColorF(10, 11, 12);
         ColorF b = new ColorF(10, 11, 12);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         BorderDouble a = new BorderDouble(10, 11, 12, 13);
         BorderDouble b = new BorderDouble(10, 11, 12, 13);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         Point2D a = new Point2D(10, 11);
         Point2D b = new Point2D(10, 11);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         RectangleDouble a = new RectangleDouble(10, 11, 12, 13);
         RectangleDouble b = new RectangleDouble(10, 11, 12, 13);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
     {
         RectangleInt a = new RectangleInt(10, 11, 12, 13);
         RectangleInt b = new RectangleInt(10, 11, 12, 13);
         Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
     }
 }
コード例 #3
0
ファイル: SimpleTests.cs プロジェクト: CNCBrasil/agg-sharp
		public void TestGetHashCode()
		{
			{
				RGBA_Bytes a = new RGBA_Bytes(10, 11, 12);
				RGBA_Bytes b = new RGBA_Bytes(10, 11, 12);
				Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
			}
			{
				RGBA_Floats a = new RGBA_Floats(10, 11, 12);
				RGBA_Floats b = new RGBA_Floats(10, 11, 12);
				Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
			}
			{
				BorderDouble a = new BorderDouble(10, 11, 12, 13);
				BorderDouble b = new BorderDouble(10, 11, 12, 13);
				Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
			}
			{
				Point2D a = new Point2D(10, 11);
				Point2D b = new Point2D(10, 11);
				Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
			}
			{
				RectangleDouble a = new RectangleDouble(10, 11, 12, 13);
				RectangleDouble b = new RectangleDouble(10, 11, 12, 13);
				Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
			}
			{
				RectangleInt a = new RectangleInt(10, 11, 12, 13);
				RectangleInt b = new RectangleInt(10, 11, 12, 13);
				Assert.IsTrue(a.GetHashCode() == b.GetHashCode());
			}
		}