public void CollectExternalUsages() { ILStrip strip = new ILStrip(TestHelper.TranslatePath("ILStripTestLib.dll")); strip.CollectUsageFromReferences = true; strip.EntryPoints.Add("ILStripTest.ExternalLibUser"); strip.ScanUsedClasses(); CollectionAssert.AreEqual(new string[] { "ILStripWinFormsTestLib.UnusedForm" }, strip.GetUsagesFromReference("ILStripWinFormsTestLib")); }