Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusrodrigues committed Apr 9, 2024
1 parent 161f2d2 commit c0cf5dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Dotnet.Installer.Core.Tests/Models/ComponentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ public async Task Uninstall_WithInstalledComponent_ShouldUninstall()
var manifestService = new Mock<IManifestService>();

fileService.Setup(f => f.FileExists(It.IsAny<string>())).Returns(true);
manifestService.Setup(m => m.DotnetInstallLocation).Returns("test");
manifestService.Setup(m => m.DotnetInstallLocation).Returns("dotnet_install_path");
manifestService.Setup(m => m.SnapConfigurationLocation).Returns("snap_config_location");
manifestService.Setup(m => m.Remove(It.IsAny<Component>(), CancellationToken.None))
.Callback((Component c, CancellationToken cancellationToken) =>
{
Expand Down Expand Up @@ -297,7 +298,8 @@ public async Task Uninstall_WhenRegistrationFileDoesNotExist_ShouldThrowApplicat
var manifestService = new Mock<IManifestService>();

fileService.Setup(f => f.FileExists(It.IsAny<string>())).Returns(false);
manifestService.Setup(m => m.DotnetInstallLocation).Returns("test");
manifestService.Setup(m => m.DotnetInstallLocation).Returns("dotnet_install_path");
manifestService.Setup(m => m.SnapConfigurationLocation).Returns("snap_config_location");

// Assert
await Assert.ThrowsAsync<ApplicationException>(() =>
Expand Down

0 comments on commit c0cf5dd

Please sign in to comment.