public void ConstructorWithAttributes_HasAttributes()
 {
     var constructor = new ConstructorInfoWrapper(typeof(PublicAttributeConstructorTestClass).GetConstructors().First());
     var SUT = new ConstructorData(constructor);
     Assert.That(SUT.AttributeData.Count > 0);
     Assert.That(SUT.AttributeData.Any(x => x.Name == typeof(TestAttributeAttribute).FullName));
 }
 public void PublicConstructorDataFromString_IsPublic()
 {
     var testString = "\t\tpublic Void .ctor()";
     var constructorData = new ConstructorData(testString);
     Assert.That(constructorData.AccessLevel == AccessLevelEnum.Public);
 }
 public void PublicConstructorAccessLevel_IsPublic()
 {
     var constructor = new ConstructorInfoWrapper(typeof(PublicClass).GetConstructors().First());
     var SUT = new ConstructorData(constructor);
     Assert.That(SUT.AccessLevel == AccessLevelEnum.Public);
 }
 public void ProtectedConstructorDataFromString_IsProtected()
 {
     var testString = "\t\tprotected Void .ctor()";
     var constructorData = new ConstructorData(testString);
     Assert.That(constructorData.AccessLevel == AccessLevelEnum.Protected);
 }
 public void PrivateConstructorDataFromString_IsPrivate()
 {
     var testString = "\t\tprivate Void .ctor()";
     var constructorData = new ConstructorData(testString);
     Assert.That(constructorData.AccessLevel == AccessLevelEnum.Private);
 }
 public void PrivateConstructorAccessLevel_IsPublic()
 {
     var constructor = new ConstructorInfoWrapper(typeof(PrivateAttributeConstructorTestClass).GetConstructors(BindingFlags.NonPublic|BindingFlags.Instance).First());
     var SUT = new ConstructorData(constructor);
     Assert.That(SUT.AccessLevel == AccessLevelEnum.Private);
 }
 public void InternalConstructorDataFromString_IsInternal()
 {
     var testString = "\t\tinternal Void .ctor()";
     var constructorData = new ConstructorData(testString);
     Assert.That(constructorData.AccessLevel == AccessLevelEnum.Internal);
 }