public void RasterMapperGetHashCodeTest() { RasterMapper mapper1 = new RasterMapper(RasterMapMode.ValueIsArea, MatrixFactory.CreateIdentity(4)); RasterMapper mapper2 = new RasterMapper(RasterMapMode.ValueIsArea, MatrixFactory.CreateIdentity(4)); Assert.AreEqual(mapper1.GetHashCode(), mapper2.GetHashCode()); mapper2 = new RasterMapper(RasterMapMode.ValueIsCoordinate, MatrixFactory.CreateIdentity(4)); Assert.AreNotEqual(mapper1.GetHashCode(), mapper2.GetHashCode()); mapper2 = RasterMapper.FromTransformation(RasterMapMode.ValueIsArea, new Coordinate(300, 1000, 0), new CoordinateVector(10, 3)); Assert.AreNotEqual(mapper1.GetHashCode(), mapper2.GetHashCode()); }