Exemplo n.º 1
0
        public void PackageLoadTest()
        {
            using (var loader = new PackageLoader(null))
            {
                loader.AddPackages(new AssemblyCatalog(Assembly.GetExecutingAssembly()), null);

                Assert.IsNull(loader.Get<TestPackage>().BotBits);
            }
        }
Exemplo n.º 2
0
        public void PackageLoadTest()
        {
            using (var loader = new PackageLoader(null))
            {
                loader.AddPackages(new AssemblyCatalog(Assembly.GetExecutingAssembly()), null);

                Assert.IsNull(loader.Get <TestPackage>().BotBits);
            }
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }