コード例 #1
0
        public void InitializeTypeEnforcesCreationOfNewInstances()
        {
            var silkveilContainer1 = SilkveilContainerPool.GetInstance();

            silkveilContainer1.Dispose();

            SilkveilContainerPool.InitializeType();

            var silkveilContainer2 = SilkveilContainerPool.GetInstance();

            Assert.That(silkveilContainer1, Is.Not.SameAs(silkveilContainer2));
        }
コード例 #2
0
 public void ResetSilkveilContainerPool()
 {
     SilkveilContainerPool.InitializeType();
 }