Exemplo n.º 1
0
        public void IsGeneratedOnType(string name, bool expected)
        {
            var type = AttributeTest.GetType(name);

            Assert.That(type.IsGenerated(), Is.EqualTo(expected));
        }
Exemplo n.º 2
0
        public void HasAttributeOnType(string name, bool expected)
        {
            var type = AttributeTest.GetType(name);

            Assert.That(type.HasAttribute <ObsoleteAttribute>(), Is.EqualTo(expected));
        }
Exemplo n.º 3
0
        public void IsGeneratedOnMethod(string name, bool expected)
        {
            var method = AttributeTest.GetMethod(name);

            Assert.That(method.IsGenerated(), Is.EqualTo(expected));
        }
Exemplo n.º 4
0
        public void HasAttributeOnMethod(string name, bool expected)
        {
            var method = AttributeTest.GetMethod(name);

            Assert.That(method.HasAttribute <ObsoleteAttribute>(), Is.EqualTo(expected));
        }