public void NoOperation_FourArgs() { Action <int, char, string, byte> no_op = Functor.NoOperation <int, char, string, byte>(); Assert.That(no_op.Target, Is.Null); Assert.That(no_op.Method, Is.SameAs(GetNoOpMethod(typeof(int), typeof(char), typeof(string), typeof(byte)))); }
public void NoOperation_OneArg() { Action <int> no_op = Functor.NoOperation <int>(); Assert.That(no_op.Target, Is.Null); Assert.That(no_op.Method, Is.SameAs(GetNoOpMethod(typeof(int)))); }
public void NoOperation_TwoArgs() { Action <int, char> no_op = Functor.NoOperation <int, char>(); Assert.That(no_op.Target, Is.Null); Assert.That(no_op.Method, Is.SameAs(GetNoOpMethod(typeof(int), typeof(char)))); }
public void NoOperation_NoArgs() { Action no_op = Functor.NoOperation(); Assert.That(no_op.Target, Is.Null); Assert.That(no_op.Method, Is.SameAs(GetNoOpMethod())); }