public void Create_ReturnsBinding_IfContainsResolvedGenericParameter() { // Arrange ITableEntityArgumentBindingProvider product = new PocoEntityArgumentBindingProvider(); Type parameterType = typeof(GenericClass <SimpleTableEntity>); // Act IArgumentBinding <TableEntityContext> binding = product.TryCreate(_parameters[1]); // Assert Assert.NotNull(binding); }
public void Create_ReturnsNull_IfByRefParameter() { // Arrange ITableEntityArgumentBindingProvider product = new PocoEntityArgumentBindingProvider(); Type parameterType = typeof(SimpleTableEntity).MakeByRefType(); // Act IArgumentBinding <TableEntityContext> binding = product.TryCreate(_parameters[0]); // Assert Assert.Null(binding); }