Add Microsoft.Plugin.Uri.UnitTests to CI + Fix Tests (#5878)

Co-authored-by: Roy <royvou@hotmailcom>
This commit is contained in:
Roy
2020-08-11 20:49:44 +02:00
committed by GitHub
parent 18f5c7f691
commit 90502f7553
2 changed files with 4 additions and 3 deletions

View File

@@ -86,6 +86,7 @@ steps:
**\ImageResizer.Test.dll
**\KeyboardManagerTest.dll
**\Microsoft.Plugin.Program.UnitTests.dll
**\Microsoft.Plugin.Uri.UnitTests.dll
**\PowerRenameUnitTests.dll
**\UnitTests-CommonLib.dll
**\PreviewPaneUnitTests.dll #this is the markdown tests

View File

@@ -33,9 +33,9 @@ namespace Microsoft.Plugin.Uri.UnitTests.UriHelper
[TestCase("http://test.co", true, "http://test.co/")]
[TestCase("http://test.com", true, "http://test.com/")]
[TestCase("http:3", true,"http://http:3/")]
[TestCase("[::]", true, "http://[::]")]
[TestCase("[2001:0DB8::1]", true, "http://[2001:0DB8::1]/")]
[TestCase("[2001:0DB8::1]:80",true, "http://[2001:0DB8::1]/")]
[TestCase("[::]", true, "http://[::]/")]
[TestCase("[2001:0DB8::1]", true, "http://[2001:db8::1]/")]
[TestCase("[2001:0DB8::1]:80",true, "http://[2001:db8::1]/")]
public void TryParse_CanParseHostName(string query, bool expectedSuccess, string expectedResult)
{
// Arrange