public void CtorInfo_ShouldReturnConstructorInfo() { //Arrange PrivateConstructorInfo privateConstructorInfo = new PrivateConstructorInfo(typeof(WithPrivateCtor), new object[0]); //Act ConstructorInfo ctorInfo = privateConstructorInfo.CtorInfo(); //Assert ctorInfo.Should().NotBeNull(); }
public T Object() => (T)_privateConstructorInfo.CtorInfo().Invoke(_args);