Skip to content

Commit

Permalink
rename to make name more clear in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Sep 20, 2024
1 parent 679b33a commit dac886d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class MacOsOpenUrlTests
[TestMethod]
public void OpenDefault_NonMacOS()
{
var result = MacOsOpenUrl.OpenDefault(["any value"], OSPlatform.Linux);
var result = MacOsOpenUrl.OpenDefault(["OpenDefault_NonMacOS any value"], OSPlatform.Linux);
Assert.IsNull(result);
}

Expand Down Expand Up @@ -105,7 +105,8 @@ public void TestMethodWithDefaultApp__MacOnly()
[TestMethod]
public void OpenApplicationAtUrl_NonMacOs()
{
var result = MacOsOpenUrl.OpenApplicationAtUrl(new List<string> { "any value" }, "app",
var result = MacOsOpenUrl.OpenApplicationAtUrl(
new List<string> { "OpenApplicationAtUrl_NonMacOs any value" }, "app",
OSPlatform.Linux);
Assert.IsNull(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ private static CreateFakeStarskyWindowsExe SetupEnsureAssociationsSet()
[TestMethod]
public void W_OpenDefault_NonWindows()
{
var result = WindowsOpenDesktopApp.OpenDefault(["any value"], OSPlatform.Linux);
var result =
WindowsOpenDesktopApp.OpenDefault(["W_OpenDefault_NonWindows any value"],
OSPlatform.Linux);
Assert.IsNull(result);
}

Expand All @@ -95,7 +97,8 @@ public void W_OpenDefault2_NonWindows()
return;
}

var result = WindowsOpenDesktopApp.OpenDefault(["any value"], OSPlatform.Windows);
var result = WindowsOpenDesktopApp.OpenDefault(["W_OpenDefault2_NonWindows any value"],
OSPlatform.Windows);

Assert.IsTrue(result);
}
Expand All @@ -109,7 +112,7 @@ public void W_OpenDefault3_NonWindows()
return;
}

var result = WindowsOpenDesktopApp.OpenDefault(["any value"]);
var result = WindowsOpenDesktopApp.OpenDefault(["W_OpenDefault3_NonWindows any value"]);

Console.WriteLine(result);

Expand Down Expand Up @@ -144,7 +147,8 @@ public async Task W_OpenDefault_HappyFlow__WindowsOnly()
[TestMethod]
public void W_OpenApplicationAtUrl_NonWindows()
{
var result = WindowsOpenDesktopApp.OpenApplicationAtUrl(new List<string> { "any value" },
var result = WindowsOpenDesktopApp.OpenApplicationAtUrl(
new List<string> { "W_OpenApplicationAtUrl_NonWindows any value" },
"app", OSPlatform.Linux);
Assert.IsNull(result);
}
Expand All @@ -161,7 +165,8 @@ public void W_OpenApplicationAtUrl2_NonWindows()
Assert.ThrowsException<Win32Exception>(() =>
{
// Code that is expected to throw the exception
WindowsOpenDesktopApp.OpenApplicationAtUrl(["any value"],
WindowsOpenDesktopApp.OpenApplicationAtUrl(
["W_OpenApplicationAtUrl2_NonWindows any value"],
"/not_found_849539453", OSPlatform.Windows);
});
}
Expand All @@ -178,7 +183,8 @@ public void W_OpenApplicationAtUrl3_NonWindows()
Assert.ThrowsException<Win32Exception>(() =>
{
// Code that is expected to throw the exception
WindowsOpenDesktopApp.OpenApplicationAtUrl(["any value"],
WindowsOpenDesktopApp.OpenApplicationAtUrl(
["W_OpenApplicationAtUrl3_NonWindows any value"],
"app");
});
}
Expand Down

0 comments on commit dac886d

Please sign in to comment.