Ejemplo n.º 1
0
        public void Factory_ShouldCreateANewInstance([ValueSource(nameof(Paramz))] ITuple paramz)
        {
            List <string> instance = (List <string>)ProxyActivator.Create(typeof(List <string>)).Invoke(paramz);

            Assert.IsNotNull(instance);
        }
Ejemplo n.º 2
0
 public void Factory_ShouldThrowOnInvalidParam([ValueSource(nameof(BadParamz))] ITuple paramz) =>
 Assert.Throws <MissingMemberException>(() => ProxyActivator.Create(typeof(List <string>)).Invoke(paramz));
Ejemplo n.º 3
0
 public void Create_ShouldBuildAFactory() =>
 Assert.DoesNotThrow(() => ProxyActivator.Create(typeof(List <string>)));