public void GetAIModuleTypeReturnsNullForNonExistingAssembly()
 {
     Assert.IsNull(WebRequestTrackingModuleRegister.GetModuleType("Non.Existing.Assembly", "Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule"));
 }
 public void GetAIModuleTypeReturnsNullForClassThatCannotBeInstantiated()
 {
     Assert.IsNull(WebRequestTrackingModuleRegister.GetModuleType(
                       typeof(ClassWithFailingStaticConstructor).Assembly.GetName().Name, typeof(ClassWithFailingStaticConstructor).FullName));
 }
 public void GetAIModuleTypeReturnsActualType()
 {
     Assert.AreEqual(typeof(WebRequestTrackingModuleRegisterTest), WebRequestTrackingModuleRegister.GetModuleType(typeof(WebRequestTrackingModuleRegisterTest).Assembly.GetName().Name, typeof(WebRequestTrackingModuleRegisterTest).FullName));
 }
 public void GetAIModuleTypeReturnsNullForNonExistingClass()
 {
     Assert.IsNull(WebRequestTrackingModuleRegister.GetModuleType(
                       typeof(ClassWithFailingStaticConstructor).Assembly.FullName, "Non.Existing.Type"));
 }