Exemplo n.º 1
0
        public void DifferentTypeNotEqual()
        {
            var a = new ExternalType(new FunctionType());
            var b = new ExternalType(new TableType(0));

            Assert.That(a.Equals(b), Is.False);
        }
Exemplo n.º 2
0
 private static void Equals(ExternalType a, ExternalType b)
 {
     Assert.That(a.Equals(a), Is.True);
     Assert.That(a.Equals(b), Is.True);
     Assert.That(a.Equals(null), Is.False);
     Assert.That(a.Equals((object)a), Is.True);
     Assert.That(a.Equals((object)b), Is.True);
     Assert.That(a.Equals((object)null), Is.False);
     Assert.That(a.GetHashCode(), Is.EqualTo(b.GetHashCode()));
     Assert.That(a == b, Is.True);
     Assert.That(a != b, Is.False);
 }