Esempio n. 1
0
    public void TestEmployerDefaultConstructorDetection() {
      TestEmployer testEmployer = new TestEmployer();

      Assert.IsFalse(testEmployer.CanEmploy(typeof(NoDefaultConstructor)));
      Assert.IsFalse(testEmployer.CanEmploy(typeof(NonPublicDefaultConstructor)));
      Assert.IsTrue(testEmployer.CanEmploy(typeof(PublicDefaultConstructor)));
    }
Esempio n. 2
0
        public void TestEmployerDefaultConstructorDetection()
        {
            TestEmployer testEmployer = new TestEmployer();

            Assert.IsFalse(testEmployer.CanEmploy(typeof(NoDefaultConstructor)));
            Assert.IsFalse(testEmployer.CanEmploy(typeof(NonPublicDefaultConstructor)));
            Assert.IsTrue(testEmployer.CanEmploy(typeof(PublicDefaultConstructor)));
        }