Пример #1
0
        public void ShouldUseAParameterlessCtor()
        {
            var instance = (Parameterless)CreateInstanceFromType2020RuntimeArgs
                           .GetInstance(typeof(Parameterless));

            Assert.NotNull(instance);
        }
Пример #2
0
        public void ShouldUseAParameterlessValueTypeCtor()
        {
            var instance = (Guid)CreateInstanceFromType2020RuntimeArgs
                           .GetInstance(typeof(Guid));

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