Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void HasDefaultConstructorFail()
 {
     ReflectionAssert.HasDefaultConstructor(typeof(FailClass));
 }
Exemplo n.º 3
0
 public void HasDefaultConstructor()
 {
     ReflectionAssert.HasDefaultConstructor(typeof(SuccessClass));
 }