public void IsGeneratedOnMethod(string name, bool expected) { var method = AttributeTest.GetMethod(name); Assert.That(method.IsGenerated(), Is.EqualTo(expected)); }
public void HasAttributeOnMethod(string name, bool expected) { var method = AttributeTest.GetMethod(name); Assert.That(method.HasAttribute <ObsoleteAttribute>(), Is.EqualTo(expected)); }