Example #1
0
        public void HasAttribute_AttributeFound()
        {
            var obj = new FakeObject();

            Assert.That(obj.HasAttribute <FakeAttribute>("TestMethod"), Is.True);
        }
Example #2
0
        public void HasAttribute_NoMethodFound()
        {
            var obj = new FakeObject();

            Assert.That(obj.HasAttribute <FakeAttribute>("IncorrectMethod"), Is.False);
        }