public Fixture(Type type, IRun run, MethodInfo setUp, MethodInfo tearDown, bool ignored) { if (type == null) { throw new ArgumentNullException("type"); } if (run == null) { throw new ArgumentNullException("run"); } this.type = type; ReflectionAssert.HasDefaultConstructor(this.type); this.run = run; this.setUp = setUp; this.tearDown = tearDown; this.ignored = ignored; this.starters = new RunPipeStarterCollection(this); }
public void HasDefaultConstructorFail() { ReflectionAssert.HasDefaultConstructor(typeof(FailClass)); }
public void HasDefaultConstructor() { ReflectionAssert.HasDefaultConstructor(typeof(SuccessClass)); }