Fixing typo in DefaultAssemblyControllerProvider
This commit is contained in:
parent
1921387b56
commit
fc01cf6eea
|
|
@ -29,11 +29,11 @@ namespace Microsoft.AspNet.Mvc
|
|||
{
|
||||
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
|
||||
// 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);
|
||||
|
||||
// Act
|
||||
var candidates = provider.GetCandiateLibraries();
|
||||
var candidates = provider.GetCandidateLibraries();
|
||||
|
||||
// Assert
|
||||
Assert.Equal(new[] { "SomeRandomAssembly" }, candidates.Select(a => a.Name));
|
||||
|
|
@ -49,7 +49,7 @@ namespace Microsoft.AspNet.Mvc.Core
|
|||
var provider = new DefaultControllerAssemblyProvider(manager.Object);
|
||||
|
||||
// Act
|
||||
var candidates = provider.GetCandiateLibraries();
|
||||
var candidates = provider.GetCandidateLibraries();
|
||||
|
||||
// Assert
|
||||
Assert.Equal(new[] { "Baz", "Foo", "Bar" }, candidates.Select(a => a.Name));
|
||||
|
|
|
|||
Loading…
Reference in New Issue