Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _context?.Dispose();
     }
 }
Пример #2
0
 public void TearDown()
 {
     try
     {
         ctx.Dispose();
     }
     catch (Exception) { /*ignore, may fail because of dispose in the middle of a (second) render pass*/ }
 }
Пример #3
0
 public void TearDown() => ctx.Dispose();
Пример #4
0
 public void Teardown()
 {
     testContext.Dispose();
 }
Пример #5
0
 public void Cleanup()
 {
     _testContext?.Dispose();
 }
Пример #6
0
 public void DisposeContext()
 {
     _renderedComponent.Dispose();
     _context.Dispose();
 }
Пример #7
0
 public void DisposeContext()
 {
     _context.Dispose();
 }
Пример #8
0
 public void Dispose()
 {
     Context?.Dispose();
     Context = null;
 }
Пример #9
0
 public void Dispose()
 {
     _context?.Dispose();
     _context = null;
 }
Пример #10
0
 public void Teardown()
 {
     ctx.Dispose();
 }
Пример #11
0
 public void TearDown() => _testContext?.Dispose();
Пример #12
0
 public void Dispose()
 {
     _context?.Dispose();
 }