Correct setup of three tests added in prior commit
- compiler given `ApplicationName`, not `ApplicationBasePath`
- @pranavkm wrote the tests prior to 64ddbe0160
nit: rewrap long line introduced in prior commit
This commit is contained in:
parent
717c2bfd39
commit
a4e01bfe35
|
|
@ -31,9 +31,10 @@ namespace Microsoft.AspNet.Mvc.Razor
|
|||
|
||||
private static string FormatMessage(ICompilationFailure compilationFailure)
|
||||
{
|
||||
return Resources.CompilationFailed +
|
||||
Environment.NewLine +
|
||||
string.Join(Environment.NewLine, compilationFailure.Messages.Select(message => message.FormattedMessage));
|
||||
}
|
||||
return Resources.CompilationFailed + Environment.NewLine +
|
||||
string.Join(
|
||||
Environment.NewLine,
|
||||
compilationFailure.Messages.Select(message => message.FormattedMessage));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public class MyTestType {}";
|
|||
var libraryManager = GetLibraryManager();
|
||||
|
||||
var compilerOptionsProvider = new Mock<ICompilerOptionsProvider>();
|
||||
compilerOptionsProvider.Setup(p => p.GetCompilerOptions(applicationEnvironment.ApplicationBasePath,
|
||||
compilerOptionsProvider.Setup(p => p.GetCompilerOptions(applicationEnvironment.ApplicationName,
|
||||
applicationEnvironment.RuntimeFramework,
|
||||
applicationEnvironment.Configuration))
|
||||
.Returns(new CompilerOptions());
|
||||
|
|
@ -100,7 +100,7 @@ public class MyTestType {}";
|
|||
var libraryManager = GetLibraryManager();
|
||||
|
||||
var compilerOptionsProvider = new Mock<ICompilerOptionsProvider>();
|
||||
compilerOptionsProvider.Setup(p => p.GetCompilerOptions(applicationEnvironment.ApplicationBasePath,
|
||||
compilerOptionsProvider.Setup(p => p.GetCompilerOptions(applicationEnvironment.ApplicationName,
|
||||
applicationEnvironment.RuntimeFramework,
|
||||
applicationEnvironment.Configuration))
|
||||
.Returns(new CompilerOptions());
|
||||
|
|
@ -134,7 +134,7 @@ public class MyTestType {}";
|
|||
var libraryManager = GetLibraryManager();
|
||||
|
||||
var compilerOptionsProvider = new Mock<ICompilerOptionsProvider>();
|
||||
compilerOptionsProvider.Setup(p => p.GetCompilerOptions(applicationEnvironment.ApplicationBasePath,
|
||||
compilerOptionsProvider.Setup(p => p.GetCompilerOptions(applicationEnvironment.ApplicationName,
|
||||
applicationEnvironment.RuntimeFramework,
|
||||
applicationEnvironment.Configuration))
|
||||
.Returns(new CompilerOptions());
|
||||
|
|
|
|||
Loading…
Reference in New Issue