From eda9edc41d124f0d8bb0477f7fdb18fb90bc8634 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Mon, 29 Jun 2015 17:17:13 -0700 Subject: [PATCH] Fix Travis-CI. - Added platform specific path handling to the TagHelperUsageDescriptorFactoryTests. --- .travis.yml | 2 +- .../TagHelpers/TagHelperUsageDescriptorFactoryTest.cs | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 65b9f21ec2..98c31725ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: csharp sudo: false mono: - - 3.12.0 + - alpha script: - ./build.sh --quiet verify \ No newline at end of file diff --git a/test/Microsoft.AspNet.Razor.Runtime.Test/TagHelpers/TagHelperUsageDescriptorFactoryTest.cs b/test/Microsoft.AspNet.Razor.Runtime.Test/TagHelpers/TagHelperUsageDescriptorFactoryTest.cs index 1b2630cd02..130820d173 100644 --- a/test/Microsoft.AspNet.Razor.Runtime.Test/TagHelpers/TagHelperUsageDescriptorFactoryTest.cs +++ b/test/Microsoft.AspNet.Razor.Runtime.Test/TagHelpers/TagHelperUsageDescriptorFactoryTest.cs @@ -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 {