Fix Travis-CI.

- Added platform specific path handling to the TagHelperUsageDescriptorFactoryTests.
This commit is contained in:
N. Taylor Mullen 2015-06-29 17:17:13 -07:00
parent 308eddc095
commit eda9edc41d
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
language: csharp
sudo: false
mono:
- 3.12.0
- alpha
script:
- ./build.sh --quiet verify

View File

@ -31,11 +31,14 @@ namespace Microsoft.AspNet.Razor.Runtime.TagHelpers
// These test assemblies don't really exist. They are used to look up corresponding XML for a fake assembly
// which is based on the DocumentedTagHelper type.
public static readonly string DocumentedAssemblyLocation =
Directory.GetCurrentDirectory() + "/TestFiles/NotLocalized/TagHelperDocumentation.dll";
Directory.GetCurrentDirectory() +
string.Format("{0}TestFiles{0}NotLocalized{0}TagHelperDocumentation.dll", Path.DirectorySeparatorChar);
public static readonly string LocalizedDocumentedAssemblyLocation =
Directory.GetCurrentDirectory() + "/TestFiles/Localized/TagHelperDocumentation.dll";
Directory.GetCurrentDirectory() +
string.Format("{0}TestFiles{0}Localized{0}TagHelperDocumentation.dll", Path.DirectorySeparatorChar);
public static readonly string DocumentedAssemblyCodeBase =
"file:///" + DocumentedAssemblyLocation;
"file:" + new string(Path.DirectorySeparatorChar, 3) +
DocumentedAssemblyLocation.TrimStart(Path.DirectorySeparatorChar);
public static TheoryData CreateDescriptor_TypeDocumentationData
{