public void SingletonProperlyDisposed()
        {
            using (var singleton = new MyDisposable())
            {
                SingletonsContainer.Add(singleton.GetType().FullName, singleton);

                Assert.IsFalse(singleton.DisposeCalled);

                // Simulate application exit
                SingletonsContainer.Release();
                Assert.IsTrue(singleton.DisposeCalled);
            }
        }
		public void SingletonProperlyDisposed()
		{
			using (var singleton = new MyDisposable())
			{
				SingletonsContainer.Add(singleton.GetType().FullName, singleton);

				Assert.IsFalse(singleton.DisposeCalled);

				// Simulate application exit
				SingletonsContainer.Release();
				Assert.IsTrue(singleton.DisposeCalled);
			}
		}