Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests
  • Loading branch information
jeffkl authored and donnie-msft committed Oct 14, 2025
commit cbee774f8b5d97b963e049cc9a93548aaed60a25
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using NuGet.Frameworks;
using NuGet.LibraryModel;
using NuGet.RuntimeModel;
using NuGet.Shared;
using NuGet.Versioning;
using Test.Utility;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System.Text;
using System.Text.Json;
using NuGet.Shared;
using Xunit;

namespace NuGet.ProjectModel.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Text;
using System.Text.Json;
using Moq;
using NuGet.Shared;
using Xunit;

namespace NuGet.ProjectModel.Test
Expand Down Expand Up @@ -805,7 +806,7 @@ public void ReadObjectAsList_WithValidJson_ReturnsValue()
using (var stream = new MemoryStream(encodedBytes))
using (var reader = new Utf8JsonStreamReader(stream))
{
var results = reader.ReadObjectAsList(Utf8JsonReaderExtensions.LockFileItemConverter);
var results = reader.ReadObjectAsList(Utf8JsonStreamLockFileConverters.LockFileItemConverter);
Assert.Equal(3, results.Count);
}
}
Expand All @@ -819,7 +820,7 @@ public void ReadObjectAsList_WithEmptyValues_ReturnsEmptyArray(string json)
using (var stream = new MemoryStream(encodedBytes))
using (var reader = new Utf8JsonStreamReader(stream))
{
var results = reader.ReadObjectAsList(Utf8JsonReaderExtensions.LockFileItemConverter);
var results = reader.ReadObjectAsList(Utf8JsonStreamLockFileConverters.LockFileItemConverter);
Assert.Equal(0, results.Count);
Assert.IsType(Array.Empty<LockFileItem>().GetType(), results);
}
Expand All @@ -836,7 +837,7 @@ public void ReadObjectAsList_WithInvalidValue_ThrowsException()
using (var stream = new MemoryStream(encodedBytes))
using (var reader = new Utf8JsonStreamReader(stream))
{
reader.ReadObjectAsList(Utf8JsonReaderExtensions.LockFileItemConverter);
reader.ReadObjectAsList(Utf8JsonStreamLockFileConverters.LockFileItemConverter);
}
});
}
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.