Skip to content

Commit

Permalink
fix: resolve compilation errors after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
stranne committed Aug 17, 2024
1 parent 62c9834 commit f30c7ae
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions GodotEnv.Tests/src/features/godot/models/GodotEnvironmentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void GetsExpectedMacMonoDownloadUrl() {

[Fact]
public void GetsExpectedWindowsDownloadUrl() {
fileClient.Setup(f => f.Processor).Returns(ProcessorType.other);
_fileClient.Setup(f => f.Processor).Returns(ProcessorType.other);

var platform = new Windows(_fileClient.Object, _computer.Object);

Expand All @@ -51,7 +51,7 @@ public void GetsExpectedWindowsDownloadUrl() {

[Fact]
public void GetsExpectedWindowsMonoDownloadUrl() {
fileClient.Setup(f => f.Processor).Returns(ProcessorType.other);
_fileClient.Setup(f => f.Processor).Returns(ProcessorType.other);

var platform = new Windows(_fileClient.Object, _computer.Object);

Expand All @@ -64,28 +64,28 @@ public void GetsExpectedWindowsMonoDownloadUrl() {

[Fact]
public void GetsExpectedWindowsArmDownloadUrl() {
fileClient.Setup(f => f.Processor).Returns(ProcessorType.arm64);
_fileClient.Setup(f => f.Processor).Returns(ProcessorType.arm64);

var platform = new Windows(fileClient.Object, computer.Object);
var platform = new Windows(_fileClient.Object, _computer.Object);

var downloadUrl = platform.GetDownloadUrl(version4, false, false);
var downloadUrl = platform.GetDownloadUrl(_version4, false, false);
downloadUrl.ShouldBe($"{GodotEnvironment.GODOT_URL_PREFIX}4.1.2-stable/Godot_v4.1.2-stable_windows_arm64.exe.zip");

downloadUrl = platform.GetDownloadUrl(version3, false, false);
downloadUrl.ShouldBe($"{GodotEnvironment.GODOT_URL_PREFIX}{version3.VersionString}-stable/Godot_v{version3.VersionString}-stable_windows_arm64.exe.zip");
downloadUrl = platform.GetDownloadUrl(_version3, false, false);
downloadUrl.ShouldBe($"{GodotEnvironment.GODOT_URL_PREFIX}{_version3.VersionString}-stable/Godot_v{_version3.VersionString}-stable_windows_arm64.exe.zip");
}

[Fact]
public void GetsExpectedWindowsArmMonoDownloadUrl() {
fileClient.Setup(f => f.Processor).Returns(ProcessorType.arm64);
_fileClient.Setup(f => f.Processor).Returns(ProcessorType.arm64);

var platform = new Windows(fileClient.Object, computer.Object);
var platform = new Windows(_fileClient.Object, _computer.Object);

var downloadUrl = platform.GetDownloadUrl(version4, true, false);
downloadUrl.ShouldBe(GetExpectedDownloadUrl(version4, "stable_mono_windows_arm64"));
var downloadUrl = platform.GetDownloadUrl(_version4, true, false);
downloadUrl.ShouldBe(GetExpectedDownloadUrl(_version4, "stable_mono_windows_arm64"));

downloadUrl = platform.GetDownloadUrl(version3, true, false);
downloadUrl.ShouldBe(GetExpectedDownloadUrl(version3, "stable_mono_windows_arm64"));
downloadUrl = platform.GetDownloadUrl(_version3, true, false);
downloadUrl.ShouldBe(GetExpectedDownloadUrl(_version3, "stable_mono_windows_arm64"));
}

[Fact]
Expand Down

0 comments on commit f30c7ae

Please sign in to comment.