Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
a57aabf
Copied initial files over and addressred some PR comments
jgonz120 Dec 20, 2023
05ed3db
Test updates
jgonz120 Dec 21, 2023
c285f0f
optimized string split
jgonz120 Dec 21, 2023
c06e3f5
cleanup
jgonz120 Dec 21, 2023
ef90a51
switch to stream
jgonz120 Dec 21, 2023
4c31cbf
fix typo
jgonz120 Dec 21, 2023
b787826
fix typo
jgonz120 Dec 21, 2023
c627b25
create static json reader state
jgonz120 Dec 21, 2023
ef35381
typo
jgonz120 Dec 21, 2023
084986d
typo
jgonz120 Dec 21, 2023
5850754
added lazy string split
jgonz120 Dec 22, 2023
014739f
using
jgonz120 Dec 22, 2023
d28a482
Update unit tests
jgonz120 Dec 22, 2023
c9cb53f
unit tests
jgonz120 Dec 22, 2023
d083e23
fix references
jgonz120 Dec 22, 2023
0b22126
Fix typo
jgonz120 Dec 22, 2023
e81974f
Added test for invalid logs
jgonz120 Jan 4, 2024
d2cc5d6
removed extra name assignment from package spec reader
jgonz120 Jan 4, 2024
2de68c4
use array empty
jgonz120 Jan 4, 2024
79e2b71
move public method up
jgonz120 Jan 4, 2024
ccd6fe1
remove uneeded string list
jgonz120 Jan 4, 2024
8d719c6
use false string
jgonz120 Jan 4, 2024
212b7bd
add is final block to test
jgonz120 Jan 4, 2024
b5a82d7
rename test
jgonz120 Jan 4, 2024
82363ee
style
jgonz120 Jan 4, 2024
0cc4e51
style
jgonz120 Jan 4, 2024
c525dc8
add tests for validating empty streams on creationg of utf8jsonstream…
jgonz120 Jan 4, 2024
4e5112a
Added test and implemented string split in two
jgonz120 Jan 5, 2024
2398980
fix validation for lazy string split
jgonz120 Jan 8, 2024
1693913
reduce methods in LikeFileFormat
jgonz120 Jan 8, 2024
e0ef66d
set the list values with the results directly
jgonz120 Jan 8, 2024
b4d0169
store environment variable to avoid calling GetEnvironmentVariable se…
jgonz120 Jan 8, 2024
f060670
switch to splitintwo
jgonz120 Jan 9, 2024
4602b44
Update conditional for framework
jgonz120 Jan 9, 2024
a240062
Caching the parsed NugetVersion and VersionRange objects.
jgonz120 Jan 11, 2024
0883567
Fixes from PR
jgonz120 Jan 11, 2024
c4adaf7
Avoid creating empty lists
jgonz120 Jan 11, 2024
bda30bb
Revert "Caching the parsed NugetVersion and VersionRange objects."
jgonz120 Jan 17, 2024
fb7ebd5
Fix netwonsoft json parsing
jgonz120 Jan 17, 2024
32aba9a
Add missing reference
jgonz120 Jan 17, 2024
8853734
added some examples of the json to be parsed
jgonz120 Jan 17, 2024
1b29455
Fix references in comments
jgonz120 Jan 17, 2024
1877448
Fixes from PR
jgonz120 Jan 22, 2024
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
Test updates
  • Loading branch information
jgonz120 committed Dec 21, 2023
commit 05ed3db8bd2c8c2bd16f5ca400ae11f20b38081e
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace NuGet.VisualStudio.Implementation.Test.SolutionExplorer.Models
public class AssetsFileDependenciesSnapshotTests
{
[Fact]
[Obsolete]
public void ParseLibraries_IgnoreCaseInDependenciesTree_Succeeds()
{
var lockFileContent = """
Expand Down Expand Up @@ -68,6 +69,7 @@ public void ParseLibraries_IgnoreCaseInDependenciesTree_Succeeds()
}

[Fact]
[Obsolete]
public void ParseLibraries_LogForUnknownLibrary_AddsUnknownLibraryType()
{
var lockFileContent = """
Expand Down Expand Up @@ -118,6 +120,7 @@ public void ParseLibraries_LogForUnknownLibrary_AddsUnknownLibraryType()
}

[Fact]
[Obsolete]
public void ParseLibraries_LogForUnknownLibrary_WithAbsolutePath_AddsUnknownLibraryType()
{
var lockFileContent = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ public async Task RestoreCommand_UnmatchedRefAndLibAssembliesAsync()
}

[Fact(Skip = "https://github.com/NuGet/Home/issues/8765")]
[Obsolete]
public async Task RestoreCommand_LockedLockFileWithOutOfDateProjectAsync()
{
const string project = @"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class UWPRestoreTests
{
// Verify that a v1 lock file can be parsed without crashing.
[Fact]
[System.Obsolete]
public void UWPRestore_ReadV1LockFile()
{
// Arrange
Expand All @@ -43,6 +44,7 @@ public void UWPRestore_ReadV1LockFile()
}

[Fact]
[System.Obsolete]
public void UWPRestore_ReadLockFileRoundTrip()
{
using (var workingDir = TestDirectory.Create())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ public void LockFileFormat_LockedPropertyIsIgnored()
var lockFileFormat = new LockFileFormat();

// Act
#pragma warning disable CS0612 // Type or member is obsolete
var lockFileTrue = lockFileFormat.Parse(lockFileContentTrue, "In Memory");
var lockFileFalse = lockFileFormat.Parse(lockFileContentFalse, "In Memory");
var lockFileMissing = lockFileFormat.Parse(lockFileContentMissing, "In Memory");
#pragma warning restore CS0612 // Type or member is obsolete

var lockFileTrueString = lockFileFormat.Render(lockFileTrue);
var lockFileFalseString = lockFileFormat.Render(lockFileFalse);
Expand Down Expand Up @@ -207,7 +209,9 @@ public void LockFileFormat_ReadsLockFileWithNoTools()
}
}";
var lockFileFormat = new LockFileFormat();
#pragma warning disable CS0612 // Type or member is obsolete
var lockFile = lockFileFormat.Parse(lockFileContent, "In Memory");
#pragma warning restore CS0612 // Type or member is obsolete

Assert.Equal(1, lockFile.Version);

Expand Down Expand Up @@ -2018,7 +2022,9 @@ public void LockFileFormat_ReadsLockFileWithTools()
}
}";
var lockFileFormat = new LockFileFormat();
#pragma warning disable CS0612 // Type or member is obsolete
var lockFile = lockFileFormat.Parse(lockFileContent, "In Memory");
#pragma warning restore CS0612 // Type or member is obsolete

Assert.Equal(1, lockFile.Version);

Expand Down Expand Up @@ -2094,7 +2100,9 @@ public void LockFileFormat_ReadsLockFileWithEmbedAssemblies()
}";

var lockFileFormat = new LockFileFormat();
#pragma warning disable CS0612 // Type or member is obsolete
var lockFile = lockFileFormat.Parse(lockFileContent, "In Memory");
#pragma warning restore CS0612 // Type or member is obsolete

Assert.Equal(1, lockFile.Version);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ public void LockFile_ConsiderCentralTransitiveDependencyGroupsForEquality()
}

[Fact]
[Obsolete]
public void LockFile_GetTarget_WithNuGetFramework_ReturnsCorrectLockFileTarget()
{
// Arrange
Expand All @@ -870,6 +871,7 @@ public void LockFile_GetTarget_WithNuGetFramework_ReturnsCorrectLockFileTarget()
}

[Fact]
[Obsolete]
public void LockFile_GetTarget_WithAlias_ReturnsCorrectLockFileTarget()
{
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ private static LockFile GetAssetsFileWithRetry(string path)
{
content = File.ReadAllText(path);
var format = new LockFileFormat();
#pragma warning disable CS0612 // Type or member is obsolete
return format.Parse(content, path);
#pragma warning restore CS0612 // Type or member is obsolete
}
catch
{
Expand Down