Skip to content

Commit

Permalink
renamed OSX -> macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
vlada-shubina committed Feb 1, 2023
1 parent 1511d34 commit 601f789
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ namespace Xunit
/// <summary>
/// This test should be run only on OSX.
/// </summary>
public class OsxOnlyTheoryAttribute : TheoryAttribute
public class MacOSOnlyFactAttribute : FactAttribute
{
/// <summary>
/// Initializes a new instance of the <see cref="OsxOnlyTheoryAttribute"/> class.
/// Initializes a new instance of the <see cref="MacOSOnlyFactAttribute"/> class.
/// </summary>
/// <param name="additionalMessage">The additional message that is appended to skip reason, when test is skipped.</param>
public OsxOnlyTheoryAttribute(string? additionalMessage = null)
public MacOSOnlyFactAttribute(string? additionalMessage = null)
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
this.Skip = "This test requires OSX to run.".AppendAdditionalMessage(additionalMessage);
this.Skip = "This test requires macOS to run.".AppendAdditionalMessage(additionalMessage);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ namespace Xunit
/// <summary>
/// This test should be run only on OSX.
/// </summary>
public class OsxOnlyFactAttribute : FactAttribute
public class MacOSOnlyTheoryAttribute : TheoryAttribute
{
/// <summary>
/// Initializes a new instance of the <see cref="OsxOnlyFactAttribute"/> class.
/// Initializes a new instance of the <see cref="MacOSOnlyTheoryAttribute"/> class.
/// </summary>
/// <param name="additionalMessage">The additional message that is appended to skip reason, when test is skipped.</param>
public OsxOnlyFactAttribute(string? additionalMessage = null)
public MacOSOnlyTheoryAttribute(string? additionalMessage = null)
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
this.Skip = "This test requires OSX to run.".AppendAdditionalMessage(additionalMessage);
this.Skip = "This test requires macOS to run.".AppendAdditionalMessage(additionalMessage);
}
}
}
Expand Down

0 comments on commit 601f789

Please sign in to comment.