public void MethodFunc2() { var actual = NameOf.Method <MethodTests, int>(x => this.DummyMethod(0)); Assert.AreEqual(nameof(this.DummyMethod), actual); }
public void MethodFunc() { var actual = NameOf.Method <MethodTests>(x => DummyMethod(0)); Assert.AreEqual("DummyMethod", actual); }
public void MethodAction2() { var actual = NameOf.Method(() => this.DummyMethod(0)); Assert.AreEqual(nameof(this.DummyMethod), actual); }
public void MethodAction() { var actual = NameOf.Method(() => DummyMethod(0)); Assert.AreEqual("DummyMethod", actual); }