public void CheckIfNull () { var testClass = new TestClass (); testClass.TestMethod (null);/*d42a19ec-98db-4166-a3b4-fc102ebd7905*/ testClass.TestMethod ("notNull");/*f633d197-cb92-418a-860c-4d8eadbe2342*/ Console.Write ("");/*6d50c480-1cd1-49a9-9758-05f65c07c037*/ }
public void ExtractMethodName_ReturnsMethodName_NoArgs() { var model = new TestClass(); Assert.AreEqual( "TestMethod", ClassHelper.ExtractMethodName( () => model.TestMethod() ) ); }
public void ExtractClassType_ReturnsClassType_ForMethod() { var model = new TestClass(); Assert.AreEqual( typeof( TestClass ), ClassHelper.ExtractClassType( () => model.TestMethod() ) ); }