コード例 #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         //fChecksList.Dispose();
         TreeTools.SearchPlaces_Clear(fPlaces);
         fPlaces.Dispose();
         fRMSkip.Dispose();
         //fSplitList.Dispose();
     }
     base.Dispose(disposing);
 }
コード例 #2
0
        public void Test_SearchPlaces()
        {
            Assert.Throws(typeof(ArgumentNullException), () => { TreeTools.SearchPlaces_Clear(null); });

            StringList placesList = new StringList();

            Assert.Throws(typeof(ArgumentNullException), () => { TreeTools.SearchPlaces(null, null, null); });
            Assert.Throws(typeof(ArgumentNullException), () => { TreeTools.SearchPlaces(fBaseWin.Context.Tree, null, null); });
            Assert.Throws(typeof(ArgumentNullException), () => { TreeTools.SearchPlaces(fBaseWin.Context.Tree, placesList, null); });

            TreeTools.SearchPlaces(fBaseWin.Context.Tree, placesList, AppHost.Progress);
            Assert.IsTrue(placesList.IndexOf("Ivanovo") >= 0);    // <- TestStubs
            Assert.IsTrue(placesList.IndexOf("unknown") >= 0);    // <- TestStubs
            Assert.IsTrue(placesList.IndexOf("Far Forest") >= 0); // <- TestStubs
        }
コード例 #3
0
 public void Clear()
 {
     TreeTools.SearchPlaces_Clear(fPlaces);
     fPlaces.Dispose();
 }