public void Does_Constructor_Set_InferType_False() { //Assign var parentAttribute = new UmbracoParentAttribute(); //Act //Assert parentAttribute.InferType.Should().BeFalse(); }
public void Does_Constructor_Set_IsLazy_True() { //Assign var parentAttribute = new UmbracoParentAttribute(); //Act //Assert parentAttribute.IsLazy.Should().BeTrue(); }
public void Configure_ConfigureCalled_UmbracoInfoConfigurationReturned() { //Assign var attr = new UmbracoParentAttribute(); var propertyInfo = typeof(StubClass).GetProperty("DummyProperty"); //Act var result = attr.Configure(propertyInfo) as UmbracoParentConfiguration; //Assert result.Should().NotBeNull(); }