Beispiel #1
0
        public void Features_Unit_Localized()
        {
            PerfionXml xml = Parse(Examples.Example1);

            Dictionary <string, PerfionXml.Feature> features = xml.Features();

            Assert.That(features["Category"].Unit("dan"), Is.EqualTo("UnitDAN"));
            Assert.That(features["Category"].Unit("en"), Is.EqualTo("UnitEN"));
        }
Beispiel #2
0
        public void Features_Caption_Localized()
        {
            PerfionXml xml = Parse(Examples.Example1);

            Dictionary <string, PerfionXml.Feature> features = xml.Features();

            Assert.That(features["Category"].Caption("dan"), Is.EqualTo("Kategori"));
            Assert.That(features["ItemNumber"].Caption("en"), Is.EqualTo("Item Number"));
            Assert.That(features["Product"].Caption(), Is.EqualTo("Produkt"));
            Assert.That(features["Section"].Caption("dummy"), Is.Null);
        }