protected override void Dispose(bool disposing) { if (disposing) { //fChecksList.Dispose(); TreeTools.SearchPlaces_Clear(fPlaces); fPlaces.Dispose(); fRMSkip.Dispose(); //fSplitList.Dispose(); } base.Dispose(disposing); }
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 }
public void Clear() { TreeTools.SearchPlaces_Clear(fPlaces); fPlaces.Dispose(); }