public void GetProperty_will_throw_on_invalid_property_name(IProperties pp) { Assert.Throws <ArgumentException>(() => pp.GetProperty("")); Assert.Throws <ArgumentException>(() => pp.GetProperty(null)); Assert.Throws <ArgumentException>(() => pp.GetPropertyType("")); Assert.Throws <ArgumentException>(() => pp.GetPropertyType(null)); Assert.Throws <ArgumentException>(() => pp.TryGetProperty("", typeof(object), out _)); Assert.Throws <ArgumentException>(() => pp.TryGetProperty(null, typeof(object), out _)); }
public void ReadOnlyAdapters_should_apply_GetProperty(IProperties p) { Assert.Equal("bc123", p.GetProperty("a")); Assert.Equal(typeof(string), p.GetPropertyType("a")); }