protected void Run(Type type) { classContext = new ClassContext(type, convention); classContext.Build(); var method = type.Methods().First().Name; Run(type, method); }
public void setup() { parentContext = new ClassContext(typeof(parent_act)); childContext = new ClassContext(typeof(child_act)); parentContext.AddContext(childContext); instance = new child_act(); parentContext.Build(); }
protected void Run(Type type, string methodName) { classContext = new ClassContext(type, convention); var method = type.Methods().Single(s => s.Name == methodName); methodContext = new MethodContext(method); classContext.AddContext(methodContext); classContext.Build(); classContext.Run(); }
public void setup() { conventions = new DefaultConventions(); conventions.Initialize(); parentContext = new ClassContext(typeof(parent_before), conventions); childContext = new ClassContext(typeof(child_before), conventions); parentContext.AddContext(childContext); parentContext.Build(); childContext.Build(); }