public void HasProperty_for_generic_child_array_when_property_name_is_inferred() { var instance = new ConfiguredInstance(typeof(UsesGateways)); IConfiguredInstance configuredInstance = instance; configuredInstance.HasProperty("gateways", null).ShouldBeFalse(); instance.ChildArray <IGateway[]>().Contains(new DefaultInstance()); configuredInstance.HasProperty("gateways", null).ShouldBeTrue(); }
public void HasProperty_for_child_array() { var instance = new ConfiguredInstance(GetType()); IConfiguredInstance configuredInstance = instance; configuredInstance.HasProperty("prop1", null).ShouldBeFalse(); instance.ChildArray <IGateway[]>("prop1").Contains(new DefaultInstance()); configuredInstance.HasProperty("prop1", null).ShouldBeTrue(); }