예제 #1
0
 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
 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
		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());
			}
		}