Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.KernelWrapper.TestUtil/Kernels/AssemblyToolKernelFactoryConfig.cs =================================================================== diff -u -raf2dccd51c7d3ece1434603ea37e8f75cdbb54a2 -r94f14096f9a5565b9f961c7b7e1822ef0976a42a --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.KernelWrapper.TestUtil/Kernels/AssemblyToolKernelFactoryConfig.cs (.../AssemblyToolKernelFactoryConfig.cs) (revision af2dccd51c7d3ece1434603ea37e8f75cdbb54a2) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.KernelWrapper.TestUtil/Kernels/AssemblyToolKernelFactoryConfig.cs (.../AssemblyToolKernelFactoryConfig.cs) (revision 94f14096f9a5565b9f961c7b7e1822ef0976a42a) @@ -55,13 +55,22 @@ AssemblyToolKernelFactory.Instance = new TestAssemblyToolKernelFactory(); } + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + /// /// Reverts the to the value /// it had at time of construction of the . /// - public void Dispose() + protected virtual void Dispose(bool disposing) { - AssemblyToolKernelFactory.Instance = previousFactory; + if (disposing) + { + AssemblyToolKernelFactory.Instance = previousFactory; + } } } } \ No newline at end of file