Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testHashCodeAndEquals()
        public virtual void testHashCodeAndEquals()
        {
            ParameterLimitsTransform other = new NullTransform();

            assertEquals(other, NULL_TRANSFORM);
            assertEquals(other.GetHashCode(), NULL_TRANSFORM.GetHashCode());
            other = new ParameterLimitsTransformAnonymousInnerClass(this);
            assertFalse(other.Equals(NULL_TRANSFORM));
        }
Exemplo n.º 2
0
        static NonLinearTransformFunctionTest()
        {
            NULL_TRANSFORMS    = new ParameterLimitsTransform[2];
            NULL_TRANSFORMS[0] = new NullTransform();
            NULL_TRANSFORMS[1] = new NullTransform();

            TRANSFORMS    = new ParameterLimitsTransform[2];
            TRANSFORMS[0] = new DoubleRangeLimitTransform(0, Math.PI);
            TRANSFORMS[1] = new SingleRangeLimitTransform(0, ParameterLimitsTransform_LimitType.GREATER_THAN);
        }