public void PopulatePropertyThrowsExceptionWithNullProperty() { var instance = new SlimModel(); var sut = new PopulatePropertyWrapper(); Action action = () => sut.RunTest(null !, instance); action.Should().Throw <ArgumentNullException>(); }
public void PopulatePropertyThrowsExceptionWithNullInstance() { var sut = new PopulatePropertyWrapper(); var property = typeof(Person).GetProperty(nameof(Person.FirstName)) !; Action action = () => sut.RunTest(property); action.Should().Throw <ArgumentNullException>(); }