Skip to content

Commit

Permalink
Fixed broken LockStrategy unit tests (#2531)
Browse files Browse the repository at this point in the history
  • Loading branch information
daguiler authored and mitchelsellers committed Jan 9, 2019
1 parent bf35896 commit 6e3df7d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void DoubleDisposeAllowed()
}

[Test, ExpectedException(typeof (LockRecursionException))]
public void DoubleReadLockThrows()
public virtual void DoubleReadLockThrows()
{
using (var strategy = GetLockStrategy())
{
Expand Down Expand Up @@ -136,7 +136,7 @@ public void DoubleWriteLockOnDifferentThreadsWaits()
}

[Test, ExpectedException(typeof (LockRecursionException))]
public void DoubleWriteLockThrows()
public virtual void DoubleWriteLockThrows()
{
using (ILockStrategy strategy = GetLockStrategy())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,17 @@ internal override ILockStrategy GetLockStrategy()
{
return new ReaderWriterLockStrategy();
}

[Test] // no ExpectedException attribute
public override void DoubleReadLockThrows()
{
base.DoubleReadLockThrows();
}

[Test] // no ExpectedException attribute
public override void DoubleWriteLockThrows()
{
base.DoubleWriteLockThrows();
}
}
}

0 comments on commit 6e3df7d

Please sign in to comment.