コード例 #1
0
        public void TestEqualsFalseForNull()
        {
            var groupAlgebra = new CurveGroupAlgebra(curveParameters);

            bool result = groupAlgebra.Equals(null);

            Assert.IsFalse(result);
        }
コード例 #2
0
        public void TestEqualsFalseForOtherAlgebra()
        {
            var groupAlgebra = new CurveGroupAlgebra(curveParameters);
            var otherAlgebra = new CurveGroupAlgebra(largeParameters);

            bool result = groupAlgebra.Equals(otherAlgebra);

            Assert.IsFalse(result);
        }
コード例 #3
0
        public void TestEqualsFalseForUnrelatedObject()
        {
            var groupAlgebra = new CurveGroupAlgebra(curveParameters);
            var otherAlgebra = new object();

            bool result = groupAlgebra.Equals(otherAlgebra);

            Assert.IsFalse(result);
        }