Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Added conventon based assembly loading #715

Merged

Conversation

thecodejunkie
Copy link
Member

The ConfigurableBootstrapper will now attempt to locate the
name of the test assembly. Once it has a hold of the name it
will see if it can strip "test", "tests", "unittests", "specs"
or "specifications" from the name.

It will assume that the resulting name is the name of the
assembly that is under test and will identify all the referenced
assemblies and load them into the application domain.

The list of suffixes can be modified by changing the static
field TestAssemblySuffixes on ConfigurableBoostrapper.

Fixes issue #421

The ConfigurableBootstrapper will now attempt to locate the
name of the test assembly. Once it has a hold of the name it
will see if it can strip "test", "tests", "unittests", "specs"
or "specifications" from the name.

It will assume that the resulting name is the name of the
assembly that is under test and will identify all the referenced
assemblies and load them into the application domain.

The list of suffixes can be modified by changing the static
field TestAssemblySuffixes on ConfigurableBoostrapper.

Fixes issue NancyFx#421
grumpydev added a commit that referenced this pull request Aug 17, 2012
…-421

Added conventon based assembly loading
@grumpydev grumpydev merged commit 837f6f7 into NancyFx:master Aug 17, 2012
@thecodejunkie thecodejunkie deleted the nancytestingloadassemblies-421 branch February 17, 2016 07:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants