public void CompilerGenerated_ReturnsFalse()
            {
                var customAttributeDataMock = MockRepository.GenerateStrictMock <ICustomAttributeData> ();

                customAttributeDataMock
                .Expect(x => x.Constructor)
                .Return(typeof(CompilerGeneratedAttribute).GetConstructors().Single());

                var result = ICustomAttributeDataExtensions.IsAspectAttribute(customAttributeDataMock);

                Assert.That(result, Is.False);
            }
            public void AspectAttribute_ReturnsTrue()
            {
                var customAttributeDataMock = MockRepository.GenerateStrictMock <ICustomAttributeData> ();

                customAttributeDataMock
                .Expect(x => x.Constructor)
                .Return(typeof(DomainAttribute).GetConstructor(Type.EmptyTypes));

                var result = ICustomAttributeDataExtensions.IsAspectAttribute(customAttributeDataMock);

                Assert.That(result, Is.True);
            }