Tests.LeakTests.CrossBoundaryLeakTest C# (CSharp) Method

CrossBoundaryLeakTest() private method

private CrossBoundaryLeakTest ( ) : void
return void
        public void CrossBoundaryLeakTest()
        {
            // This actually works, but writing test for it is a little
            // more involved. The test runner would always resolve the
            // un-instrumented LeakerLib. We'll need to use a separate
            // AppDomain
            Assert.Ignore("Test not implemented");

            using (var lib = new InstrumentedCopy("LeakerLib.dll"))
            using (var exe = new InstrumentedCopy("CrossBoundaryLeaker.exe",
                lib.DirectoryName))
            {
                AssemblyLauncher.Launch(exe.FileName);
            }

            Assert.AreEqual(1, DisposerRegistry.LeakedObjects.Count);
        }