public void CanPopulateReturnsTrueTest() { var target = new DefaultTypeCreator(); var actual = target.CanPopulate(typeof(Person), null, null); actual.Should().BeTrue(); }
public void CanPopulateThrowsExceptionWithNullTypeTest() { var buildChain = new LinkedList<object>(); var target = new DefaultTypeCreator(); Action action = () => target.CanPopulate(null, "Name", buildChain); action.ShouldThrow<ArgumentNullException>(); }