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

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

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

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

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