public void TestResourceManagerResourceSets() { Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; ResourceManagerPoker rm = new ResourceManagerPoker(); rm.InitResourceSets(); ResourceSet rs = rm.GetResourceSet(CultureInfo.InvariantCulture, true, true); Assert.AreEqual(1, rm.GetResourceSets().Keys.Count, "#01"); rs.Close(); Assert.AreEqual(1, rm.GetResourceSets().Keys.Count, "#02"); rs = rm.GetResourceSet(CultureInfo.InvariantCulture, true, true); Assert.AreEqual(1, rm.GetResourceSets().Keys.Count, "#03"); rm.ReleaseAllResources(); }
public void TestResourceManagerResourceSets () { Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; ResourceManagerPoker rm = new ResourceManagerPoker (); rm.InitResourceSets (); ResourceSet rs = rm.GetResourceSet (CultureInfo.InvariantCulture, true, true); Assert.AreEqual (1, rm.GetResourceSets().Keys.Count, "#01"); rs.Close (); Assert.AreEqual (1, rm.GetResourceSets().Keys.Count, "#02"); rs = rm.GetResourceSet (CultureInfo.InvariantCulture, true, true); Assert.AreEqual (1, rm.GetResourceSets().Keys.Count, "#03"); rm.ReleaseAllResources (); }