Fixing typo in DefaultAssemblyControllerProvider
This commit is contained in:
parent
1921387b56
commit
fc01cf6eea
|
|
@ -29,11 +29,11 @@ namespace Microsoft.AspNet.Mvc
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return GetCandiateLibraries().Select(Load);
|
return GetCandidateLibraries().Select(Load);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal IEnumerable<ILibraryInformation> GetCandiateLibraries()
|
internal IEnumerable<ILibraryInformation> GetCandidateLibraries()
|
||||||
{
|
{
|
||||||
// GetReferencingLibraries returns the transitive closure of referencing assemblies
|
// GetReferencingLibraries returns the transitive closure of referencing assemblies
|
||||||
// for a given assembly. In our case, we'll gather all assemblies that reference
|
// for a given assembly. In our case, we'll gather all assemblies that reference
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Mvc.Core
|
||||||
var provider = new DefaultControllerAssemblyProvider(manager.Object);
|
var provider = new DefaultControllerAssemblyProvider(manager.Object);
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
var candidates = provider.GetCandiateLibraries();
|
var candidates = provider.GetCandidateLibraries();
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.Equal(new[] { "SomeRandomAssembly" }, candidates.Select(a => a.Name));
|
Assert.Equal(new[] { "SomeRandomAssembly" }, candidates.Select(a => a.Name));
|
||||||
|
|
@ -49,7 +49,7 @@ namespace Microsoft.AspNet.Mvc.Core
|
||||||
var provider = new DefaultControllerAssemblyProvider(manager.Object);
|
var provider = new DefaultControllerAssemblyProvider(manager.Object);
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
var candidates = provider.GetCandiateLibraries();
|
var candidates = provider.GetCandidateLibraries();
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.Equal(new[] { "Baz", "Foo", "Bar" }, candidates.Select(a => a.Name));
|
Assert.Equal(new[] { "Baz", "Foo", "Bar" }, candidates.Select(a => a.Name));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue