diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI.Unshipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI.Unshipped.txt index e69de29bb2..5c617a3121 100644 --- a/src/Microsoft.IdentityModel.Protocols/PublicAPI.Unshipped.txt +++ b/src/Microsoft.IdentityModel.Protocols/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersion.get -> System.Version +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersion.set -> void diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Shipped.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 0000000000..2018392e40 --- /dev/null +++ b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.get -> System.Net.Http.HttpVersionPolicy? +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.set -> void diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Shipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Shipped.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Unshipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Unshipped.txt new file mode 100644 index 0000000000..2018392e40 --- /dev/null +++ b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.get -> System.Net.Http.HttpVersionPolicy? +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.set -> void diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Shipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Shipped.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Unshipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Unshipped.txt new file mode 100644 index 0000000000..2018392e40 --- /dev/null +++ b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.get -> System.Net.Http.HttpVersionPolicy? +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.set -> void diff --git a/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs b/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs index 1e2163ebc0..2d94df9ee5 100644 --- a/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs +++ b/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs @@ -205,10 +205,12 @@ public static TheoryData GetVersionTheoryData { get { - var theoryData = new TheoryData(); - theoryData.Add(new Version(1,0)); - theoryData.Add(new Version(1,1)); - theoryData.Add(new Version(2,0)); + var theoryData = new TheoryData + { + new Version(1, 0), + new Version(1, 1), + new Version(2, 0) + }; return theoryData; } } @@ -264,10 +266,12 @@ public static TheoryData GetVersionPolicyTheoryData { get { - var theoryData = new TheoryData(); - theoryData.Add(HttpVersionPolicy.RequestVersionOrLower); - theoryData.Add(HttpVersionPolicy.RequestVersionOrHigher); - theoryData.Add(HttpVersionPolicy.RequestVersionExact); + var theoryData = new TheoryData + { + HttpVersionPolicy.RequestVersionOrLower, + HttpVersionPolicy.RequestVersionOrHigher, + HttpVersionPolicy.RequestVersionExact + }; return theoryData; } }