public void Factory_ShouldCreateANewInstance([ValueSource(nameof(Paramz))] ITuple paramz) { List <string> instance = (List <string>)ProxyActivator.Create(typeof(List <string>)).Invoke(paramz); Assert.IsNotNull(instance); }
public void Factory_ShouldThrowOnInvalidParam([ValueSource(nameof(BadParamz))] ITuple paramz) => Assert.Throws <MissingMemberException>(() => ProxyActivator.Create(typeof(List <string>)).Invoke(paramz));
public void Create_ShouldBuildAFactory() => Assert.DoesNotThrow(() => ProxyActivator.Create(typeof(List <string>)));