Пример #1
0
        public void RegisterInstanceLifetimeManagerNullTest()
        {
            ATTest obj1 = new ATTest();

            obj1.Strtest = "obj1";

            UnityContainer uc = new UnityContainer();

            AssertHelper.ThrowsException <ArgumentNullException>(() => uc.RegisterInstance("obj2", obj1, null));
        }
Пример #2
0
        public void RegisterInstanceLifetimeManagerNullTest()
        {
            ATTest obj1 = new ATTest();
            obj1.Strtest = "obj1";

            UnityContainer uc = new UnityContainer();
            AssertHelper.ThrowsException<ArgumentNullException>(() => uc.RegisterInstance("obj2", obj1, null));
        }