public void TestDelegateEquals() { var inst = new Bridge1721(); Action fn1 = inst.Method1; Action fn2 = inst.Method1; Action fn3 = inst.Method2; Assert.AreEqual(fn1, fn2); Assert.AreNotEqual(fn1, fn3); }
public void TestDelegateEquals() { var inst = new Bridge1721(); Action fn1 = inst.Method1; Action fn2 = inst.Method1; Action fn3 = inst.Method2; Assert.AreEqual(fn1, fn2); Assert.AreNotEqual(fn1, fn3); Assert.True(Script.StrictEquals(fn1, fn2)); Assert.False(Script.StrictEquals(fn1, fn3)); }