Skip to content

Commit

Permalink
Fix failing test due to removing static constructor on the adats
Browse files Browse the repository at this point in the history
  • Loading branch information
albertjan committed Jun 1, 2012
1 parent 0a64f25 commit fcaf230
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Expand Up @@ -2,7 +2,7 @@
{
using System;
using System.Collections.Generic;
using System.IO;
using Nancy.Bootstrapper;
using Nancy.Conventions;
using Xunit;

Expand All @@ -13,6 +13,7 @@ public class DefaultStaticContentsConventionsFixture

public DefaultStaticContentsConventionsFixture()
{
AppDomainAssemblyTypeScanner.LoadNancyAssemblies();
this.conventions = new NancyConventions();
this.staticContentsConventions = new DefaultStaticContentsConventions();
}
Expand Down
Expand Up @@ -2,6 +2,7 @@ namespace Nancy.Tests.Unit.Conventions
{
using System;
using System.Collections.Generic;
using Nancy.Bootstrapper;
using Nancy.Conventions;
using Nancy.ViewEngines;
using Xunit;
Expand All @@ -13,6 +14,7 @@ public class DefaultViewLocationConventionsFixture

public DefaultViewLocationConventionsFixture()
{
AppDomainAssemblyTypeScanner.LoadNancyAssemblies ();
this.conventions = new NancyConventions();
this.viewLocationConventions = new DefaultViewLocationConventions();
}
Expand Down
8 changes: 4 additions & 4 deletions src/Nancy/Bootstrapper/AppDomainAssemblyTypeScanner.cs
Expand Up @@ -13,10 +13,10 @@ namespace Nancy.Bootstrapper
/// </summary>
public static class AppDomainAssemblyTypeScanner
{
static AppDomainAssemblyTypeScanner()
{
LoadNancyAssemblies();
}
//static AppDomainAssemblyTypeScanner()
//{
// LoadNancyAssemblies();
//}

/// <summary>
/// Nancy core assembly
Expand Down

0 comments on commit fcaf230

Please sign in to comment.