Beispiel #1
0
        public void GetInstanceTest()
        {
            CapeCollection c1 = new CapeCollection("collection1");

            CasterLocator.Register(c1);
            Assert.AreSame(c1, CasterLocator.GetInstance("collection1"));
        }
Beispiel #2
0
        public void UnRegisterTest1()
        {
            CapeCollection c1 = new CapeCollection("collection1");

            CasterLocator.Register(c1);
            CasterLocator.UnRegister(c1);
            Assert.AreEqual(0, CasterLocator.Keys.Count());
        }