public void SingletonRegister_Success() { ITestCase testCase = new TestCaseB(); var c = new ServiceContainer(); c = (ServiceContainer)testCase.SingletonRegister(c); var obj1 = c.GetInstance<ITestB>(); var obj2 = c.GetInstance<ITestB>(); Assert.AreEqual(obj1, obj2); Helper.Check(obj1, true); Helper.Check(obj2, true); }