예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }