Skip to content

Commit 412ef42

Browse files
committed
refactor: Make WFH internal
1 parent f0aed01 commit 412ef42

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/bunit/Extensions/WaitForHelpers/WaitForAssertionHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Bunit.Extensions.WaitForHelpers;
33
/// <summary>
44
/// Represents an async wait helper, that will wait for a specified time for an assertion to pass.
55
/// </summary>
6-
public class WaitForAssertionHelper<TComponent> : WaitForHelper<object?, TComponent>
6+
internal class WaitForAssertionHelper<TComponent> : WaitForHelper<object?, TComponent>
77
where TComponent : IComponent
88
{
99
internal const string TimeoutMessage = "The assertion did not pass within the timeout period.";

src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Bunit.Extensions.WaitForHelpers;
88
/// Represents a helper class that can wait for a render notifications from a <see cref="IRenderedComponent{TComponent}"/> type,
99
/// until a specific timeout is reached.
1010
/// </summary>
11-
public abstract class WaitForHelper<T, TComponent> : IDisposable
11+
internal abstract class WaitForHelper<T, TComponent> : IDisposable
1212
where TComponent : IComponent
1313
{
1414
private readonly TaskCompletionSource<T> checkPassedCompletionSource;

src/bunit/Extensions/WaitForHelpers/WaitForStateHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Bunit.Extensions.WaitForHelpers;
33
/// <summary>
44
/// Represents an async wait helper, that will wait for a specified time for a state predicate to pass.
55
/// </summary>
6-
public class WaitForStateHelper<TComponent> : WaitForHelper<object?, TComponent>
6+
internal class WaitForStateHelper<TComponent> : WaitForHelper<object?, TComponent>
77
where TComponent : IComponent
88
{
99
internal const string TimeoutBeforePassMessage = "The state predicate did not pass before the timeout period passed.";

0 commit comments

Comments
 (0)