Skip to content

Commit

Permalink
Add Uri serialization test
Browse files Browse the repository at this point in the history
  • Loading branch information
menees committed May 30, 2023
1 parent 4e3367c commit 8299264
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Menees.Remoting.Tests/NodeSettingsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ public void RequireGetType()
const string FrameworkStringTypeName = "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
TestVersions(typeof(string), CoreStringTypeName, FrameworkStringTypeName);

// On .NET Framework, we won't be able to load the System.Private.Uri assembly, and NodeSettings
// has no special knowledge of that assembly (like it does for System.Private.CoreLib).
if (!IsDotNetFramework)
{
const string CoreUriTypeName = "System.Uri, System.Private.Uri, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
const string FrameworkUriTypeName = "System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
TestVersions(typeof(Uri), CoreUriTypeName, FrameworkUriTypeName);
}

const string CoreDictionaryTypeName = "System.Collections.Generic.IReadOnlyDictionary`2[" +
"[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]," +
"[System.Object, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]" +
Expand Down

0 comments on commit 8299264

Please sign in to comment.