public void CreatePropertyValidatesPropertysTest(Type propertyType, string propertyName, bool includeContext) { Person context = null; if (includeContext) { context = new Person(); } var target = new DefaultBuildLog(); Action action = () => target.CreateProperty(propertyType, propertyName, context); action.ShouldThrow<ArgumentNullException>(); }
public void CreatePropertyAppendsLogEntryTest() { var context = new Person(); var target = new DefaultBuildLog(); target.CreateProperty(typeof(string), "FirstName", context); target.Output.Should().NotBeNullOrWhiteSpace(); }