Skip to content

Commit 0a945ad

Browse files
authored
Fixing error CS1738 (#352)
"error CS1738: Named argument specifications must appear after all fixed arguments have been specified. Please use language version 7.2 or greater to allow non-trailing named arguments."
1 parent c661390 commit 0a945ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Unit/DependencyManagement/DependencySnapshotInstallerTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void PromotesInstallingSnapshotToInstalledIfNotEquivalentToLatest()
114114
_mockSnapshotComparer.Setup(_ => _.AreEquivalent(_targetPathInstalling, "snapshot", _mockLogger.Object)).Returns(false);
115115

116116
var installer = CreateDependenciesSnapshotInstallerWithMocks();
117-
installer.InstallSnapshot(manifestEntries, _targetPathInstalled, PowerShell.Create(), removeIfEquivalentToLatest: true, _mockLogger.Object);
117+
installer.InstallSnapshot(manifestEntries, _targetPathInstalled, PowerShell.Create(), removeIfEquivalentToLatest: true, logger: _mockLogger.Object);
118118

119119
_mockStorage.Verify(_ => _.CreateInstallingSnapshot(_targetPathInstalled), Times.Once);
120120
_mockStorage.Verify(_ => _.PromoteInstallingSnapshotToInstalledAtomically(_targetPathInstalled), Times.Once);
@@ -130,7 +130,7 @@ public void PromotesInstallingSnapshotToInstalledIfNotAskedToRemoveEquivalentSna
130130
_mockStorage.Setup(_ => _.GetLatestInstalledSnapshot()).Returns("snapshot");
131131

132132
var installer = CreateDependenciesSnapshotInstallerWithMocks();
133-
installer.InstallSnapshot(manifestEntries, _targetPathInstalled, PowerShell.Create(), removeIfEquivalentToLatest: false, _mockLogger.Object);
133+
installer.InstallSnapshot(manifestEntries, _targetPathInstalled, PowerShell.Create(), removeIfEquivalentToLatest: false, logger: _mockLogger.Object);
134134

135135
_mockSnapshotComparer.VerifyNoOtherCalls();
136136
_mockStorage.Verify(_ => _.CreateInstallingSnapshot(_targetPathInstalled), Times.Once);
@@ -255,7 +255,7 @@ public void DoesNotPromoteSnapshotIfItIsEquivalentToLatest()
255255
_mockStorage.Setup(_ => _.SetSnapshotCreationTimeToUtcNow("snapshot"));
256256

257257
var installer = CreateDependenciesSnapshotInstallerWithMocks();
258-
installer.InstallSnapshot(manifestEntries, _targetPathInstalled, PowerShell.Create(), removeIfEquivalentToLatest: true, _mockLogger.Object);
258+
installer.InstallSnapshot(manifestEntries, _targetPathInstalled, PowerShell.Create(), removeIfEquivalentToLatest: true, logger: _mockLogger.Object);
259259

260260
_mockStorage.Verify(_ => _.PromoteInstallingSnapshotToInstalledAtomically(It.IsAny<string>()), Times.Never);
261261
_mockStorage.Verify(_ => _.RemoveSnapshot(_targetPathInstalling), Times.Once);

0 commit comments

Comments
 (0)