示例#1
0
        public void IsValidContainer_InvalidContainer()
        {
            var helper = new MefHelper();

            var container = new object();

            Assert.IsFalse(helper.IsValidContainer(container));
        }
示例#2
0
        public void IsValidContainer_ValidContainer()
        {
            var helper = new MefHelper();

            var container = new CompositionContainer();

            Assert.IsTrue(helper.IsValidContainer(container));
        }
示例#3
0
        public void IsValidContainer_Null()
        {
            var helper = new MefHelper();

            ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => helper.IsValidContainer(null));
        }