public void PopulateInstanceThrowsExceptionWithNullInstanceTest() { var target = new PopulateInstanceWrapper(); Action action = () => target.RunTest(); action.ShouldThrow<ArgumentNullException>(); }
public void PopulateInstanceThrowsExceptionWhenNotInitializedTest() { var value = new Person(); var target = new PopulateInstanceWrapper(); Action action = () => target.RunTest(value); action.ShouldThrow<InvalidOperationException>(); }