Skip to content

Commit

Permalink
Added comment for MemoryOwner<T>.Dispose test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed May 7, 2020
1 parent 6f488cd commit 54536e4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public void Test_MemoryOwnerOfT_MultipleDispose()
buffer.Dispose();
buffer.Dispose();
buffer.Dispose();

// This test consists in just getting here without crashes.
// We're validating that calling Dispose multiple times
// by accident doesn't cause issues, and just does nothing.
}

[TestCategory("HashCodeOfT")]
Expand Down

0 comments on commit 54536e4

Please sign in to comment.