public void Verify_that_Id_is_visible() { HasIgnoredProperties _sut = new HasIgnoredProperties(); var t = typeof(HasIgnoredProperties); var pi = t.GetProperty("Id"); bool hasIgnoreAttribute = Attribute.IsDefined(pi, typeof(IgnoreAttribute)); Assert.False(hasIgnoreAttribute); }
public void Verify_that_Bar_is_ignored() { HasIgnoredProperties _sut = new HasIgnoredProperties(); var t = typeof(HasIgnoredProperties); var pi = t.GetProperty("Bar"); bool hasIgnoreAttribute = Attribute.IsDefined(pi, typeof(IgnoreAttribute)); Assert.True(hasIgnoreAttribute); }
public void Verify_that_Bar2_is_ignored() { HasIgnoredProperties _sut = new HasIgnoredProperties(); var t = typeof(HasIgnoredProperties); var pi = t.GetProperty("Bar2"); bool hasIgnoreAttribute = Attribute.IsDefined(pi, typeof(IgnoreAttribute)); Assert.True(hasIgnoreAttribute); }
public void Verify_that_Id_is_visible() { HasIgnoredProperties _sut = new HasIgnoredProperties(); var t = typeof(HasIgnoredProperties); var pi = t.GetProperty("Id"); bool hasIgnoreAttribute = Attribute.IsDefined(pi, typeof(IgnoreAttribute)); Assert.False(hasIgnoreAttribute); }