Esempio n. 1
0
 public void TestGetSetRessourceAsync()
 {
     using (var streamsource = new FileSource("./GETSET/RessourceXml.xml"))
     {
         using (var manager = new RessourceXmlService(this.LogManager))
         {
             manager.Initialize(CultureInfo.GetCultureInfo("en"), streamsource);
             this._tester.TestGetSetRessourceAsync(manager);
         }
     }
 }
Esempio n. 2
0
 public void TestGeSettRessource()
 {
     using (var streamsource = new FileSource("./GETSET/RessourceXml.xml", FileSourceSaveModeEnum.KEEPALLPREVIOUSVERSION))
     {
         using (var manager = new RessourceXmlService(this.LogManager))
         {
             manager.Initialize(CultureInfo.GetCultureInfo("en"), streamsource);
             this._tester.TestGetSetRessource(manager);
         }
     }
 }
Esempio n. 3
0
 public void FailGroup()
 {
     using (var streamsource = new FileSource("./Group/RessourceXml.xml"))
     {
         using (var manager = new RessourceXmlService(this.LogManager))
         {
             manager.Initialize(CultureInfo.GetCultureInfo("en"), streamsource);
             this._tester.FailGroup(manager);
         }
     }
 }
Esempio n. 4
0
 public void TestContainsRessource()
 {
     using (var streamsource = new FileSource("./Contains/RessourceXml.xml"))
     {
         using (var manager = new RessourceXmlService(this.LogManager))
         {
             manager.Initialize(CultureInfo.GetCultureInfo("en"), streamsource);
             this._tester.TestContainsRessource(manager);
         }
     }
 }
Esempio n. 5
0
 public void TestIntialize()
 {
     using (var streamsource = new FileSource("./GETSET/RessourceXml.xml"))
     {
         using (var manager = new RessourceXmlService(this.LogManager))
         {
             manager.Initialize(CultureInfo.GetCultureInfo("en"), streamsource);
             Assert.IsTrue(manager.Culture == CultureInfo.GetCultureInfo("en"));
             Assert.IsTrue(manager.IsInitialized);
         }
     }
 }
Esempio n. 6
0
 public void TestPerformanceGetRessource()
 {
     using (var streamsource = new FileSource("./Performance/RessourceXml.xml"))
     {
         using (var managerEn = new RessourceXmlService(this.LogManager))
         {
             managerEn.Initialize(CultureInfo.GetCultureInfo("en"), streamsource);
             using (var managerFr = new RessourceXmlService(this.LogManager))
             {
                 managerFr.Initialize(CultureInfo.GetCultureInfo("fr"), streamsource);
                 this._tester.TestPerformanceGetRessource(managerEn, managerFr);
             }
         }
     }
 }