Exemplo n.º 1
0
        public void ShouldUseAParameterlessCtor()
        {
            var instance = (Parameterless)CreateInstanceFromType2020RuntimeArgs
                           .GetInstance(typeof(Parameterless));

            Assert.NotNull(instance);
        }
Exemplo n.º 2
0
        public void ShouldUseAParameterlessValueTypeCtor()
        {
            var instance = (Guid)CreateInstanceFromType2020RuntimeArgs
                           .GetInstance(typeof(Guid));

            Assert.Equal(default, instance);
Exemplo n.º 3
0
 public object R_2020_CreateInstanceFromType_3()
 {
     return(CreateInstanceFromType2020RuntimeArgs
            .GetInstance(typeof(MultiCtor), "hello!", 123, DateTime.MinValue));
 }
Exemplo n.º 4
0
 public object R_2020_CreateInstanceFromType_2()
 {
     return(CreateInstanceFromType2020RuntimeArgs
            .GetInstance(typeof(TwoParamCtor), "hello!", 123));
 }
Exemplo n.º 5
0
 public object R_2020_CreateInstanceFromType_1()
 {
     return(CreateInstanceFromType2020RuntimeArgs
            .GetInstance(typeof(OneParamCtor), "hello!"));
 }
Exemplo n.º 6
0
 public object R_2020_CreateInstanceFromType_0()
 {
     return(CreateInstanceFromType2020RuntimeArgs
            .GetInstance(typeof(Parameterless)));
 }