public void Should_find_inherited_attributes_in_methods()
 {
     var locator = new SystemReflectionProvider(Assembly.GetExecutingAssembly().Location);
     var method = locator.LocateMethod("AutoTest.TestRunners.Tests.AssemblyAnalysis.BaseClass.Blargh");
     Assert.AreEqual("AutoTest.TestRunners.Tests.AssemblyAnalysis.BaseClass.Blargh", method.Fullname);
     Assert.AreEqual(4, method.Attributes.Count());
 }
 public void Should_find_inherited_attributes()
 {
     var locator = new SystemReflectionProvider(Assembly.GetExecutingAssembly().Location);
     var cls = locator.LocateClass("AutoTest.TestRunners.Tests.AssemblyAnalysis.TypeLocatorTests");
     Assert.AreEqual("AutoTest.TestRunners.Tests.AssemblyAnalysis.TypeLocatorTests", cls.Fullname);
     Assert.AreEqual("AutoTest.TestRunners.Tests.AssemblyAnalysis.MyAttribute", cls.Attributes.ElementAt(3));
 }
 public void Should_find_me()
 {
     var locator = new SystemReflectionProvider(Assembly.GetExecutingAssembly().Location);
     var method = locator.LocateMethod("AutoTest.TestRunners.Tests.AssemblyAnalysis.TypeLocatorTests.Should_find_me");
     Assert.AreEqual("AutoTest.TestRunners.Tests.AssemblyAnalysis.TypeLocatorTests.Should_find_me", method.Fullname);
     Assert.AreEqual("NUnit.Framework.TestAttribute", method.Attributes.ElementAt(0));
 }
 public void Should_find_my_parent()
 {
     var locator = new SystemReflectionProvider(Assembly.GetExecutingAssembly().Location);
     var cls = locator.LocateClass(locator.GetParentType("AutoTest.TestRunners.Tests.AssemblyAnalysis.TypeLocatorTests.Should_find_me"));
     Assert.AreEqual("AutoTest.TestRunners.Tests.AssemblyAnalysis.TypeLocatorTests", cls.Fullname);
     Assert.AreEqual("NUnit.Framework.TestFixtureAttribute", cls.Attributes.ElementAt(0));
     Assert.AreEqual(10, cls.Methods.Count());
 }
 public void Should_find_nested_classes()
 {
     var locator = new SystemReflectionProvider(Assembly.GetExecutingAssembly().Location);
     var method = locator.LocateMethod("AutoTest.TestRunners.Tests.AssemblyAnalysis.BaseClass+MyNestedClass+MyNestedNestedClass.SomeMethod");
     Assert.AreEqual("AutoTest.TestRunners.Tests.AssemblyAnalysis.BaseClass+MyNestedClass+MyNestedNestedClass.SomeMethod", method.Fullname);
 }