Пример #1
0
        public void IsGeneratedOnType(string name, bool expected)
        {
            var type = AttributeTest.GetType(name);

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

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