Beispiel #1
0
        public void CtorInfo_ShouldReturnConstructorInfo()
        {
            //Arrange
            PrivateConstructorInfo privateConstructorInfo = new PrivateConstructorInfo(typeof(WithPrivateCtor), new object[0]);

            //Act
            ConstructorInfo ctorInfo = privateConstructorInfo.CtorInfo();

            //Assert
            ctorInfo.Should().NotBeNull();
        }
 public ReflectionObject(object[] args, PrivateConstructorInfo privateConstructorInfo)
 {
     _args = args;
     _privateConstructorInfo = privateConstructorInfo;
 }