Beispiel #1
0
        public virtual void testObject()
        {
            NormalDistribution other = new NormalDistribution(0, 1, ENGINE);

            assertEquals(NORMAL, other);
            assertEquals(NORMAL.GetHashCode(), other.GetHashCode());
            other = new NormalDistribution(0, 1);
            assertEquals(NORMAL, other);
            assertEquals(NORMAL.GetHashCode(), other.GetHashCode());
            other = new NormalDistribution(0.1, 1, ENGINE);
            assertFalse(NORMAL.Equals(other));
            other = new NormalDistribution(0, 1.1, ENGINE);
            assertFalse(NORMAL.Equals(other));
        }