public void PackageLoadTest() { using (var loader = new PackageLoader(null)) { loader.AddPackages(new AssemblyCatalog(Assembly.GetExecutingAssembly()), null); Assert.IsNull(loader.Get<TestPackage>().BotBits); } }
public void PackageLoadTest() { using (var loader = new PackageLoader(null)) { loader.AddPackages(new AssemblyCatalog(Assembly.GetExecutingAssembly()), null); Assert.IsNull(loader.Get <TestPackage>().BotBits); } }
public void DisposeTest() { TestPackage package; using (var loader = new PackageLoader(null)) { loader.AddPackages(new AssemblyCatalog(Assembly.GetExecutingAssembly()), null); package = loader.Get<TestPackage>(); } Assert.IsTrue(package.IsDisposed); }
public void DisposeTest() { TestPackage package; using (var loader = new PackageLoader(null)) { loader.AddPackages(new AssemblyCatalog(Assembly.GetExecutingAssembly()), null); package = loader.Get <TestPackage>(); } Assert.IsTrue(package.IsDisposed); }