We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5638740 commit f865281Copy full SHA for f865281
1 file changed
Tests/CSF.Screenplay.Tests/ActorTests.cs
@@ -109,14 +109,20 @@ public void PerformAsyncWithGenericResultShouldThrowIfCalledAfterActorIsDisposed
109
Assert.That(() => ((ICanPerform) sut).PerformAsync(performable), Throws.InstanceOf<ObjectDisposedException>());
110
}
111
112
- public sealed class DisposableAbility1 : IDisposable
+ public class DisposableAbility1 : IDisposable
113
{
114
- public virtual void Dispose() {}
+ public virtual void Dispose()
115
+ {
116
+ GC.SuppressFinalize(this);
117
+ }
118
119
- public sealed class DisposableAbility2 : IDisposable
120
+ public class DisposableAbility2 : IDisposable
121
122
123
124
125
126
127
128
#endregion
0 commit comments