public void IsValidContainer_InvalidContainer() { var helper = new MefHelper(); var container = new object(); Assert.IsFalse(helper.IsValidContainer(container)); }
public void IsValidContainer_ValidContainer() { var helper = new MefHelper(); var container = new CompositionContainer(); Assert.IsTrue(helper.IsValidContainer(container)); }
public void IsValidContainer_Null() { var helper = new MefHelper(); ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => helper.IsValidContainer(null)); }