Skip to content

Commit

Permalink
Make BeginTimer and EndTimer methods obsolete (#1425)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink authored Dec 2, 2022
1 parent a09511f commit 0dd258f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,14 @@ public override void AddResultFile(string? fileName)

#if NETFRAMEWORK
/// <inheritdoc/>
[Obsolete("This method is only available for .NET framework and only throws NotSupportedException. It will be removed in a future update.")]
public override void BeginTimer(string timerName)
{
throw new NotSupportedException();
}

/// <inheritdoc/>
[Obsolete("This method is only available for .NET framework and only throws NotSupportedException. It will be removed in a future update.")]
public override void EndTimer(string timerName)
{
throw new NotSupportedException();
Expand Down
2 changes: 2 additions & 0 deletions src/TestFramework/TestFramework.Extensions/TestContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,14 @@ public abstract class TestContext
/// Begins a timer with the specified name.
/// </summary>
/// <param name="timerName"> Name of the timer.</param>
[Obsolete("This method is only available for .NET framework and only throws NotSupportedException. It will be removed in a future update.")]
public abstract void BeginTimer(string timerName);

/// <summary>
/// Ends a timer with the specified name.
/// </summary>
/// <param name="timerName"> Name of the timer.</param>
[Obsolete("This method is only available for .NET framework and only throws NotSupportedException. It will be removed in a future update.")]
public abstract void EndTimer(string timerName);
#endif

Expand Down

0 comments on commit 0dd258f

Please sign in to comment.