コード例 #1
0
        public void PackageLoadTest()
        {
            using (var loader = new PackageLoader(null))
            {
                loader.AddPackages(new AssemblyCatalog(Assembly.GetExecutingAssembly()), null);

                Assert.IsNull(loader.Get<TestPackage>().BotBits);
            }
        }
コード例 #2
0
        public void PackageLoadTest()
        {
            using (var loader = new PackageLoader(null))
            {
                loader.AddPackages(new AssemblyCatalog(Assembly.GetExecutingAssembly()), null);

                Assert.IsNull(loader.Get <TestPackage>().BotBits);
            }
        }
コード例 #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);
        }
コード例 #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);
        }