Example #1
0
        public void IsGeneratedOnMethod(string name, bool expected)
        {
            var method = AttributeTest.GetMethod(name);

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

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