コード例 #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)));
    }
コード例 #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)));
        }