Beispiel #1
0
        public void LoadAllResources()
        {
            TextResources textResourcesManager = new TextResources(textResourcesWithTwoKeysPath);

            textResourcesManager.LoadResources();

            Assert.AreEqual(2, textResourcesManager.Values.Count);
        }
Beispiel #2
0
        public void LoadValues()
        {
            TextResources textResourcesManager = new TextResources(textResourcesWithTwoKeysPath);

            textResourcesManager.LoadResources();

            Assert.AreEqual("value 1", textResourcesManager.Values["key1"]);
            Assert.AreEqual("value 2", textResourcesManager.Values["key2"]);
        }
Beispiel #3
0
        public void LoadKeys()
        {
            TextResources textResourcesManager = new TextResources(textResourcesWithTwoKeysPath);

            textResourcesManager.LoadResources();

            Assert.IsTrue(textResourcesManager.Values.ContainsKey("key1"));
            Assert.IsTrue(textResourcesManager.Values.ContainsKey("key2"));
        }