diff --git a/UriTemplates.sln b/UriTemplates.sln
index 205a911..0a0ec01 100644
--- a/UriTemplates.sln
+++ b/UriTemplates.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.31101.0
+# Visual Studio 15
+VisualStudioVersion = 15.0.28010.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0C994FD2-43CE-4412-BCCD-628DBD8130DF}"
ProjectSection(SolutionItems) = preProject
@@ -9,109 +9,34 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Readme.md = Readme.md
EndProjectSection
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UriTemplates", "src\UriTemplates\UriTemplates.csproj", "{F571E020-AB02-4284-BE11-033D6E92EB66}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UriTemplateTests", "src\UriTemplateTests\UriTemplateTests.csproj", "{5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UriTemplatesPCL", "src\UriTemplatesPCL\UriTemplatesPCL.csproj", "{F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UriTemplatesPCLTests", "src\UriTemplatesPCLTests\UriTemplatesPCLTests.csproj", "{ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UriTemplates.net45", "src\UriTemplates.net45\UriTemplates.net45.csproj", "{9AE8407F-07FB-4536-9EE1-0A64831A42C3}"
-EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{718037C6-0F82-456A-B7EB-531694D035B4}"
ProjectSection(SolutionItems) = preProject
build\Build.proj = build\Build.proj
ReleaseNotes.md = ReleaseNotes.md
- build\Tavis.UriTemplates.nuspec = build\Tavis.UriTemplates.nuspec
EndProjectSection
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UriTemplates.net40", "src\UriTemplates.net40\UriTemplates.net40.csproj", "{F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UriTemplates", "src\UriTemplates\UriTemplates.csproj", "{EAF9C53B-5FC1-4E12-ADA2-16638E06AB61}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UriTemplates.profile92", "src\UriTemplates.profile92\UriTemplates.profile92.csproj", "{147131F4-08E6-401E-BB27-FFB9754A9682}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UriTemplateTests", "test\UriTemplateTests\UriTemplateTests.csproj", "{E9F4C953-526C-46EC-A037-7A9E9B61C92A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
- Debug|Mixed Platforms = Debug|Mixed Platforms
- Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
- Release|Mixed Platforms = Release|Mixed Platforms
- Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Debug|x86.ActiveCfg = Debug|Any CPU
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Release|Any CPU.Build.0 = Release|Any CPU
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {F571E020-AB02-4284-BE11-033D6E92EB66}.Release|x86.ActiveCfg = Release|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Debug|x86.ActiveCfg = Debug|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Release|Any CPU.Build.0 = Release|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}.Release|x86.ActiveCfg = Release|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Debug|x86.ActiveCfg = Debug|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Release|Any CPU.Build.0 = Release|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}.Release|x86.ActiveCfg = Release|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Debug|x86.ActiveCfg = Debug|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Release|Any CPU.Build.0 = Release|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}.Release|x86.ActiveCfg = Release|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Debug|x86.ActiveCfg = Debug|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Release|Any CPU.Build.0 = Release|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}.Release|x86.ActiveCfg = Release|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Debug|x86.ActiveCfg = Debug|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Release|Any CPU.Build.0 = Release|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}.Release|x86.ActiveCfg = Release|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Debug|x86.ActiveCfg = Debug|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Release|Any CPU.Build.0 = Release|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}.Release|x86.ActiveCfg = Release|Any CPU
+ {EAF9C53B-5FC1-4E12-ADA2-16638E06AB61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EAF9C53B-5FC1-4E12-ADA2-16638E06AB61}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EAF9C53B-5FC1-4E12-ADA2-16638E06AB61}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EAF9C53B-5FC1-4E12-ADA2-16638E06AB61}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E9F4C953-526C-46EC-A037-7A9E9B61C92A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E9F4C953-526C-46EC-A037-7A9E9B61C92A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E9F4C953-526C-46EC-A037-7A9E9B61C92A}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {575A6C64-9E46-4CFC-B284-432D50F65143}
+ EndGlobalSection
EndGlobal
diff --git a/build/Build.proj b/build/Build.proj
index c81169b..f477515 100644
--- a/build/Build.proj
+++ b/build/Build.proj
@@ -9,34 +9,16 @@
$(BaseDir)
-
-
-
-
-
-
-
-
-
-
-
+
-
\ No newline at end of file
+
diff --git a/build/Tavis.UriTemplates.nuspec b/build/Tavis.UriTemplates.nuspec
deleted file mode 100644
index 4151ecf..0000000
--- a/build/Tavis.UriTemplates.nuspec
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- Tavis.UriTemplates
- 1.1.2
- Darrel Miller
- false
- Tavis.UriTemplates
- URI Template resolution library - Implementation of RFC 6570
- http
-
- https://github.com/tavis-software/Tavis.UriTemplates
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplateTests/App.config b/src/UriTemplateTests/App.config
deleted file mode 100644
index 229907b..0000000
--- a/src/UriTemplateTests/App.config
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplateTests/Properties/AssemblyInfo.cs b/src/UriTemplateTests/Properties/AssemblyInfo.cs
deleted file mode 100644
index 7868f6b..0000000
--- a/src/UriTemplateTests/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("UriTemplateTests")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("UriTemplateTests")]
-[assembly: AssemblyCopyright("Copyright © 2012")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("ee316fdc-302c-4bfc-9054-a9ae9dc9d918")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/UriTemplateTests/UriTemplateTests.csproj b/src/UriTemplateTests/UriTemplateTests.csproj
deleted file mode 100644
index cdba336..0000000
--- a/src/UriTemplateTests/UriTemplateTests.csproj
+++ /dev/null
@@ -1,121 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- 8.0.30703
- 2.0
- {5B4A94DF-2CBB-41BF-AAB3-F7991F0C6A4B}
- Library
- Properties
- UriTemplateTests
- UriTemplateTests
- v4.6
- 512
- ..\
- true
-
-
-
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
- false
-
-
-
- ..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll
- True
-
-
-
-
-
-
-
-
-
-
- ..\..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll
- True
-
-
- ..\..\packages\xunit.assert.2.1.0\lib\dotnet\xunit.assert.dll
- True
-
-
- ..\..\packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll
- True
-
-
- ..\..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll
- True
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {F571E020-AB02-4284-BE11-033D6E92EB66}
- UriTemplates
-
-
-
-
- spec-examples.json
-
-
- extended-tests.json
-
-
- negative-tests.json
-
-
- spec-examples-by-section.json
-
-
- Designer
-
-
-
-
-
-
-
-
- This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplateTests/packages.config b/src/UriTemplateTests/packages.config
deleted file mode 100644
index 6888a8b..0000000
--- a/src/UriTemplateTests/packages.config
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplates.net40/Properties/AssemblyInfo.cs b/src/UriTemplates.net40/Properties/AssemblyInfo.cs
deleted file mode 100644
index b122ff1..0000000
--- a/src/UriTemplates.net40/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("UriTemplates.net40")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("UriTemplates.net40")]
-[assembly: AssemblyCopyright("Copyright © 2015")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("99ec5b31-385d-4850-b4d4-684a19d54b0d")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/UriTemplates.net40/UriTemplates.net40.csproj b/src/UriTemplates.net40/UriTemplates.net40.csproj
deleted file mode 100644
index 1c64836..0000000
--- a/src/UriTemplates.net40/UriTemplates.net40.csproj
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {F8ED5782-BD7C-46C4-B2DA-42D9BC49C748}
- Library
- Properties
- Tavis
- Tavis.UriTemplates
- v4.0
- 512
-
-
- true
- full
- false
- bin\Debug\
- TRACE;DEBUG;TYPE_CONVERTER
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
- OperatorInfo.cs
-
-
- Result.cs
-
-
- UriTemplate.cs
-
-
- UriTemplateCOnverter.cs
-
-
- UriTemplateExtensions.cs
-
-
- UriTemplateTable.cs
-
-
- VarSpec.cs
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplates.net45/Properties/AssemblyInfo.cs b/src/UriTemplates.net45/Properties/AssemblyInfo.cs
deleted file mode 100644
index eb0a71d..0000000
--- a/src/UriTemplates.net45/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("UriTemplates.net45")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("UriTemplates.net45")]
-[assembly: AssemblyCopyright("Copyright © 2014")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("49053acd-8821-4df6-a4f9-ed876a91a8da")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/UriTemplates.net45/UriTemplates.net45.csproj b/src/UriTemplates.net45/UriTemplates.net45.csproj
deleted file mode 100644
index 9e6c806..0000000
--- a/src/UriTemplates.net45/UriTemplates.net45.csproj
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {9AE8407F-07FB-4536-9EE1-0A64831A42C3}
- Library
- Properties
- Tavis
- Tavis.UriTemplates
- v4.5
- 512
-
-
- true
- full
- false
- bin\Debug\
- TRACE;DEBUG;TYPE_CONVERTER
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
- OperatorInfo.cs
-
-
- Result.cs
-
-
- UriTemplate.cs
-
-
- UriTemplateConverter.cs
-
-
- UriTemplateExtensions.cs
-
-
- UriTemplateTable.cs
-
-
- VarSpec.cs
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplates.profile92/Properties/AssemblyInfo.cs b/src/UriTemplates.profile92/Properties/AssemblyInfo.cs
deleted file mode 100644
index f974a66..0000000
--- a/src/UriTemplates.profile92/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System.Resources;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("UriTemplates.profile92")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("UriTemplates.profile92")]
-[assembly: AssemblyCopyright("Copyright © 2015")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: NeutralResourcesLanguage("en")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/UriTemplates.profile92/UriTemplates.profile92.csproj b/src/UriTemplates.profile92/UriTemplates.profile92.csproj
deleted file mode 100644
index 0e11019..0000000
--- a/src/UriTemplates.profile92/UriTemplates.profile92.csproj
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
- 10.0
- Debug
- AnyCPU
- {147131F4-08E6-401E-BB27-FFB9754A9682}
- Library
- Properties
- Tavis
- Tavis.UriTemplates
- en-US
- 512
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- Profile92
- v4.0
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
- OperatorInfo.cs
-
-
- Result.cs
-
-
- UriTemplate.cs
-
-
- UriTemplateExtensions.cs
-
-
- UriTemplateTable.cs
-
-
- VarSpec.cs
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplates/OperatorInfo.cs b/src/UriTemplates/OperatorInfo.cs
index d09222b..6c5c973 100644
--- a/src/UriTemplates/OperatorInfo.cs
+++ b/src/UriTemplates/OperatorInfo.cs
@@ -8,6 +8,5 @@ public class OperatorInfo
public bool Named { get; set; }
public string IfEmpty { get; set; }
public bool AllowReserved { get; set; }
-
}
}
\ No newline at end of file
diff --git a/src/UriTemplates/Properties/AssemblyInfo.cs b/src/UriTemplates/Properties/AssemblyInfo.cs
deleted file mode 100644
index 8646174..0000000
--- a/src/UriTemplates/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("UriTemplates")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("UriTemplates")]
-[assembly: AssemblyCopyright("Copyright © 2012")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/UriTemplates/Result.cs b/src/UriTemplates/Result.cs
index 844fc90..6155a41 100644
--- a/src/UriTemplates/Result.cs
+++ b/src/UriTemplates/Result.cs
@@ -142,8 +142,5 @@ public static string HexEscape(char c) {
return new string(esc);
}
private static readonly char[] HexDigits = new char[] {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
-
-
-
}
}
\ No newline at end of file
diff --git a/src/UriTemplates/UriTemplate.cs b/src/UriTemplates/UriTemplate.cs
index 70ffc79..d035719 100644
--- a/src/UriTemplates/UriTemplate.cs
+++ b/src/UriTemplates/UriTemplate.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
+using System.Globalization;
using System.Text.RegularExpressions;
namespace Tavis.UriTemplates
@@ -20,8 +17,6 @@ namespace Tavis.UriTemplates
#endif
public class UriTemplate
{
-
-
private static Dictionary _Operators = new Dictionary() {
{'\0', new OperatorInfo {Default = true, First = "", Seperator = ',', Named = false, IfEmpty = "",AllowReserved = false}},
{'+', new OperatorInfo {Default = false, First = "", Seperator = ',', Named = false, IfEmpty = "",AllowReserved = true}},
@@ -283,7 +278,6 @@ private bool ProcessVariable(VarSpec varSpec, Result result, bool multiVariableE
}
else
{
-
// Handle associative arrays
var dictionary = value as IDictionary;
if (dictionary != null)
@@ -297,14 +291,16 @@ private bool ProcessVariable(VarSpec varSpec, Result result, bool multiVariableE
else
{
// If above all fails, convert the object to string using the default object.ToString() implementation
- var stringValue = value.ToString();
- if (varSpec.OperatorInfo.Named)
+ using (new WithCultureInfo(CultureInfo.InvariantCulture))
{
- result.AppendName(varname, varSpec.OperatorInfo, string.IsNullOrEmpty(stringValue));
+ var stringValue = value.ToString();
+ if (varSpec.OperatorInfo.Named)
+ {
+ result.AppendName(varname, varSpec.OperatorInfo, string.IsNullOrEmpty(stringValue));
+ }
+ result.AppendValue(stringValue, varSpec.PrefixLength, varSpec.OperatorInfo.AllowReserved);
}
- result.AppendValue(stringValue, varSpec.PrefixLength, varSpec.OperatorInfo.AllowReserved);
}
-
}
}
@@ -468,7 +464,6 @@ private static string GetQueryExpression(List paramNames, string prefix)
return sb.ToString();
}
-
private static string GetExpression(List paramNames, string prefix = null)
{
StringBuilder sb = new StringBuilder();
@@ -497,7 +492,6 @@ private static string GetExpression(List paramNames, string prefix = nul
default:
paramDelim = "[^/?&]+";
break;
-
}
foreach (var paramname in paramNames)
@@ -518,9 +512,5 @@ private static string GetExpression(List paramNames, string prefix = nul
return sb.ToString();
}
-
-
}
-
-
}
diff --git a/src/UriTemplates/UriTemplateExtensions.cs b/src/UriTemplates/UriTemplateExtensions.cs
index ef96d6c..35c4967 100644
--- a/src/UriTemplates/UriTemplateExtensions.cs
+++ b/src/UriTemplates/UriTemplateExtensions.cs
@@ -21,7 +21,7 @@ public static UriTemplate AddParameters(this UriTemplate template, object parame
if (parametersObject != null)
{
IEnumerable properties;
-#if DOTNET5_1
+#if NETSTANDARD1_0
var type = parametersObject.GetType().GetTypeInfo();
properties = type.DeclaredProperties.Where(p=> p.CanRead);
#else
@@ -36,6 +36,7 @@ public static UriTemplate AddParameters(this UriTemplate template, object parame
return template;
}
+
public static UriTemplate AddParameters(this UriTemplate uriTemplate, IDictionary linkParameters)
{
if (linkParameters != null)
@@ -83,7 +84,5 @@ public static Dictionary GetQueryStringParameters(this Uri targe
}
return parameters;
}
-
-
}
}
diff --git a/src/UriTemplates/UriTemplateTable.cs b/src/UriTemplates/UriTemplateTable.cs
index 3489902..202230c 100644
--- a/src/UriTemplates/UriTemplateTable.cs
+++ b/src/UriTemplates/UriTemplateTable.cs
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Text;
namespace Tavis.UriTemplates
{
diff --git a/src/UriTemplates/UriTemplates.csproj b/src/UriTemplates/UriTemplates.csproj
index fee15aa..dc03755 100644
--- a/src/UriTemplates/UriTemplates.csproj
+++ b/src/UriTemplates/UriTemplates.csproj
@@ -1,61 +1,27 @@
-
-
+
+
- Debug
- AnyCPU
- 8.0.30703
- 2.0
- {F571E020-AB02-4284-BE11-033D6E92EB66}
- Library
- Properties
- Tavis.UriTemplates
- Tavis.UriTemplates
- v3.5
- 512
- ..\
-
+ netstandard1.0;net35;net40;net45
+ Tavis.UriTemplates
+ 1.1.2
+ Darrel Miller
+ http
+ URI Template resolution library - Implementation of RFC 6570
+ Tavis.UriTemplates
+ For full release notes see https://github.com/tavis-software/Tavis.UriTemplates/blob/master/ReleaseNotes.md
+ https://github.com/tavis-software/Tavis.UriTemplates
+ https://github.com/tavis-software/Tavis.UriTemplates
+ git
+ https://github.com/tavis-software/Tavis.UriTemplates/blob/master/License.txt
-
- true
- full
- false
- bin\Debug\
- TRACE;DEBUG;TYPE_CONVERTER
- prompt
- 4
+
+
+ TRACE;DEBUG;TYPE_CONVERTER;NETSTANDARD;NETSTANDARD1_0
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 4.3.0
+
-
-
-
\ No newline at end of file
+
diff --git a/src/UriTemplates/VarSpec.cs b/src/UriTemplates/VarSpec.cs
index ff95f0d..0b1a2ff 100644
--- a/src/UriTemplates/VarSpec.cs
+++ b/src/UriTemplates/VarSpec.cs
@@ -26,7 +26,6 @@ public override string ToString()
VarName.ToString()
+ (Explode ? "*" : "")
+ (PrefixLength > 0 ? ":" + PrefixLength : "");
-
}
}
-}
\ No newline at end of file
+}
diff --git a/src/UriTemplates/WithCultureInfo.cs b/src/UriTemplates/WithCultureInfo.cs
new file mode 100644
index 0000000..483e036
--- /dev/null
+++ b/src/UriTemplates/WithCultureInfo.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Globalization;
+#if NETSTANDARD1_0
+#else
+using System.Threading;
+#endif
+
+namespace Tavis.UriTemplates
+{
+ public sealed class WithCultureInfo : IDisposable
+ {
+ private readonly CultureInfo _oldCultureInfo;
+
+ public WithCultureInfo(CultureInfo cultureInfo)
+ {
+ _oldCultureInfo = CultureInfo.CurrentCulture;
+
+#if NETSTANDARD1_0
+ CultureInfo.DefaultThreadCurrentCulture = cultureInfo;
+#else
+ Thread.CurrentThread.CurrentUICulture = cultureInfo;
+#endif
+ }
+
+ public void Dispose()
+ {
+#if NETSTANDARD1_0
+ CultureInfo.DefaultThreadCurrentCulture = _oldCultureInfo;
+#else
+ Thread.CurrentThread.CurrentUICulture = _oldCultureInfo;
+#endif
+ }
+ }
+}
diff --git a/src/UriTemplatesPCL/Properties/AssemblyInfo.cs b/src/UriTemplatesPCL/Properties/AssemblyInfo.cs
deleted file mode 100644
index 8cdd119..0000000
--- a/src/UriTemplatesPCL/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System.Resources;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("UriTemplatesPCL")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("UriTemplatesPCL")]
-[assembly: AssemblyCopyright("Copyright © 2012")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: NeutralResourcesLanguage("en")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/UriTemplatesPCL/UriTemplatesPCL.csproj b/src/UriTemplatesPCL/UriTemplatesPCL.csproj
deleted file mode 100644
index 5b22800..0000000
--- a/src/UriTemplatesPCL/UriTemplatesPCL.csproj
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
-
- 14.0
- Debug
- AnyCPU
- {F12EB113-49BE-4A8E-BEFB-D04D7C0C2DEF}
- Library
- Properties
- Tavis
- Tavis.UriTemplates
- v5.0
-
-
- 512
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
-
-
-
-
- 4.0
-
-
- true
- full
- false
- bin\Debug\
- TRACE;DEBUG;DOTNET5_1;TYPE_CONVERTER
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE;DOTNET5_1
- prompt
- 4
-
-
-
- OperatorInfo.cs
-
-
- Result.cs
-
-
- UriTemplate.cs
-
-
- UriTemplateConverter.cs
-
-
- UriTemplateExtensions.cs
-
-
- UriTemplateTable.cs
-
-
- VarSpec.cs
-
-
-
-
-
-
-
-
-
- This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplatesPCL/project.json b/src/UriTemplatesPCL/project.json
deleted file mode 100644
index 80d7588..0000000
--- a/src/UriTemplatesPCL/project.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "supports": {},
- "dependencies": {
- "NETStandard.Library": "1.6.0",
- "Microsoft.NETCore.Portable.Compatibility": "1.0.1",
- "System.ComponentModel.TypeConverter": "4.3.0"
- },
- "frameworks": {
- "netstandard1.0": {}
- }
-}
\ No newline at end of file
diff --git a/src/UriTemplatesPCLTests/Properties/AssemblyInfo.cs b/src/UriTemplatesPCLTests/Properties/AssemblyInfo.cs
deleted file mode 100644
index 39caac5..0000000
--- a/src/UriTemplatesPCLTests/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("UriTemplatesPCLTests")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("UriTemplatesPCLTests")]
-[assembly: AssemblyCopyright("Copyright © 2013")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("168d142f-7cdd-4a67-9934-c6c4f9b309b7")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/UriTemplatesPCLTests/UriTemplatesPCLTests.csproj b/src/UriTemplatesPCLTests/UriTemplatesPCLTests.csproj
deleted file mode 100644
index 1f199ae..0000000
--- a/src/UriTemplatesPCLTests/UriTemplatesPCLTests.csproj
+++ /dev/null
@@ -1,118 +0,0 @@
-
-
-
-
-
- Debug
- AnyCPU
- {ADBEFEDC-53B9-4835-A546-EBD3B3F9E939}
- Library
- Properties
- UriTemplateTests
- UriTemplatesPCLTests
- v4.5
- 512
- ..\..\
- true
-
-
-
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
- false
-
-
-
- ..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll
- True
-
-
-
-
-
-
-
-
-
-
- ..\..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll
- True
-
-
- ..\..\packages\xunit.assert.2.1.0\lib\dotnet\xunit.assert.dll
- True
-
-
- ..\..\packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll
- True
-
-
- ..\..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll
- True
-
-
-
-
- SpecTests.cs
-
-
- UsageTests.cs
-
-
-
-
-
- extended-tests.json
-
-
- negative-tests.json
-
-
- spec-examples-by-section.json
-
-
- spec-examples.json
-
-
-
-
-
- {f12eb113-49be-4a8e-befb-d04d7c0c2def}
- UriTemplatesPCL
-
-
-
-
-
-
-
-
-
- This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplatesPCLTests/packages.config b/src/UriTemplatesPCLTests/packages.config
deleted file mode 100644
index 9fb1834..0000000
--- a/src/UriTemplatesPCLTests/packages.config
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/UriTemplateTests/ParameterMatchingTests.cs b/test/UriTemplateTests/ParameterMatchingTests.cs
similarity index 98%
rename from src/UriTemplateTests/ParameterMatchingTests.cs
rename to test/UriTemplateTests/ParameterMatchingTests.cs
index 4902db7..9718697 100644
--- a/src/UriTemplateTests/ParameterMatchingTests.cs
+++ b/test/UriTemplateTests/ParameterMatchingTests.cs
@@ -1,18 +1,12 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
using System.Text.RegularExpressions;
using Tavis.UriTemplates;
using Xunit;
-using Xunit.Extensions;
namespace UriTemplateTests
{
public class ParameterMatchingTests
{
-
-
[Fact]
public void MatchUriToTemplate()
{
@@ -85,8 +79,8 @@ public void GetParametersFromMultipleQueryString()
Assert.Equal("foo", parameters["p1"]);
Assert.Equal("bar", parameters["p2"]);
Assert.Equal("45", parameters["blur"]);
-
}
+
[Fact]
public void GetParametersFromMultipleQueryStringWithTwoParamValues()
{
@@ -101,7 +95,6 @@ public void GetParametersFromMultipleQueryStringWithTwoParamValues()
Assert.Equal("bar", parameters["p2"]);
Assert.Equal("45", parameters["blur"]);
Assert.Equal("23", parameters["blob"]);
-
}
[Fact]
@@ -115,7 +108,6 @@ public void GetParameterFromArrayParameter()
Assert.Equal(1, parameters.Count);
Assert.Equal("45,23", parameters["blur"]);
-
}
[Fact]
@@ -132,7 +124,6 @@ public void GetParametersFromMultipleQueryStringWithOptionalAndMandatoryParamete
Assert.Equal("bar", parameters["p2"]);
Assert.Equal("45", parameters["blur"]);
Assert.Equal("23", parameters["blob"]);
-
}
[Fact]
@@ -146,10 +137,8 @@ public void GetParametersFromMultipleQueryStringWithOptionalParameters()
Assert.Equal("foo", parameters["p1"]);
Assert.Equal("bar", parameters["p2"]);
-
}
-
[Fact]
public void TestGlimpseUrl()
{
@@ -163,22 +152,17 @@ public void TestGlimpseUrl()
Assert.Equal("123232323", parameters["parentRequestId"]);
Assert.Equal("23ADE34FAE", parameters["hash"]);
Assert.Equal("http://example.com/callback", parameters["callback"]);
-
}
[Fact]
public void TestUrlWithQuestionMarkAsFirstCharacter()
{
-
var parameters = new UriTemplate("?hash={hash}").GetParameters(new Uri("http://localhost:5000/glimpse/metadata?hash=123"));;
Assert.Equal(1, parameters.Count);
Assert.Equal("123", parameters["hash"]);
-
}
-
-
[Fact]
public void TestExactParameterCount()
{
@@ -189,7 +173,6 @@ public void TestExactParameterCount()
var parameters = template.GetParameters(uri);
Assert.Equal(1, parameters.Count);
-
}
[Fact]
@@ -202,13 +185,9 @@ public void SimplePerfTest()
for (int i = 0; i < 100000; i++)
{
var parameters = template.GetParameters(uri);
-
}
-
-
}
-
[Fact]
public void Level1Decode()
{
@@ -219,10 +198,8 @@ public void Level1Decode()
var parameters = template.GetParameters(uri);
Assert.Equal("Hello World", parameters["p1"]);
-
}
-
//[Fact]
//public void Level2Decode()
//{
@@ -233,7 +210,6 @@ public void Level1Decode()
// var parameters = template.GetParameters(uri);
// Assert.Equal("Hello/World", parameters["p1"]);
-
//}
[Fact]
@@ -246,10 +222,8 @@ public void FragmentParam()
var parameters = template.GetParameters(uri);
Assert.Equal("Hello World!", parameters["p1"]);
-
}
-
[Fact]
public void FragmentParams()
{
@@ -261,7 +235,6 @@ public void FragmentParams()
Assert.Equal("Hello World!", parameters["p1"]);
Assert.Equal("blurg", parameters["p2"]);
-
}
[Fact]
@@ -274,7 +247,6 @@ public void OptionalPathParam()
var parameters = template.GetParameters(uri);
Assert.Equal("yuck", parameters["bar"]);
-
}
[Fact]
@@ -289,7 +261,5 @@ public void OptionalPathParamWithMultipleValues()
Assert.Equal("yuck", parameters["bar"]);
Assert.Equal("yob", parameters["baz"]);
}
-
-
}
}
diff --git a/src/UriTemplateTests/SpecTests.cs b/test/UriTemplateTests/SpecTests.cs
similarity index 83%
rename from src/UriTemplateTests/SpecTests.cs
rename to test/UriTemplateTests/SpecTests.cs
index 3e49667..0ce9639 100644
--- a/src/UriTemplateTests/SpecTests.cs
+++ b/test/UriTemplateTests/SpecTests.cs
@@ -1,18 +1,17 @@
using System;
using System.Collections.Generic;
+using System.Globalization;
using System.IO;
using System.Linq;
using Newtonsoft.Json.Linq;
using Tavis.UriTemplates;
using Xunit;
-using Xunit.Extensions;
namespace UriTemplateTests
{
public class UriTemplateTests2
{
-
- [Theory, MemberData("SpecSamples")]
+ [Theory, MemberData(nameof(SpecSamples))]
public void SpecSamplesTest(string template, string[] results, TestSet.TestCase testCase)
{
var uriTemplate = new UriTemplate(template);
@@ -25,11 +24,10 @@ public void SpecSamplesTest(string template, string[] results, TestSet.TestCase
string result = null;
result = uriTemplate.Resolve();
- Assert.True(results.Contains(result));
+ Assert.Contains(result, results);
}
-
- [Theory, MemberData("ExtendedSamples")]
+ [Theory, MemberData(nameof(ExtendedSamples))]
public void ExtendedSamplesTest(string template, string[] results, TestSet.TestCase testCase)
{
var uriTemplate = new UriTemplate(template);
@@ -45,7 +43,6 @@ public void ExtendedSamplesTest(string template, string[] results, TestSet.TestC
try
{
result = uriTemplate.Resolve();
-
}
catch (ArgumentException ex)
{
@@ -58,13 +55,11 @@ public void ExtendedSamplesTest(string template, string[] results, TestSet.TestC
}
else
{
- Assert.True(results.Contains(result));
+ Assert.Contains(result, results);
}
-
}
-
- // Disabled for the moment. [Theory, PropertyData("FailureSamples")]
+ [Theory(Skip = "Disabled for the moment"), MemberData(nameof(FailureSamples))]
public void FailureSamplesTest(string template, string[] results, TestSet.TestCase testCase)
{
var uriTemplate = new UriTemplate(template);
@@ -80,7 +75,6 @@ public void FailureSamplesTest(string template, string[] results, TestSet.TestCa
try
{
result = uriTemplate.Resolve();
-
}
catch (ArgumentException ex)
{
@@ -88,11 +82,8 @@ public void FailureSamplesTest(string template, string[] results, TestSet.TestCa
}
Assert.NotNull(aex);
-
-
}
-
public static IEnumerable