public void SetUp() { StatementScope.Cleanup(); var key = new TypeKey(baseType: typeof(object)); m_Class = m_Module.DefineClass(key.BaseType, key, Guid.NewGuid().ToString()); var classBody = new ImplementationClassWriter <object>(m_Class); classBody.Method <string>(x => x.ToString).Implement(m => { }); m_Method = m_Class.GetMemberByName <MethodMember>("ToString"); }
public void TearDown() { StatementScope.Cleanup(); m_Class = null; m_Method = null; }