public void Class5Test() { using (var myStructWithReference = new MyStructWithReference()) { } Assert.That(IsMyStructWithReferenceDead, Is.True); }
public void DisposableRefStructsTest() { using (var myStructWithReferente = new MyStructWithReference()) { } // is disposed Assert.That(IsMyStructWithReferenceDead, Is.True); }