Mercurial > repos > IBBoard.Tests
comparison Lang/AbstractTranslationSetTest.cs @ 45:7502653a71a0
* Update tests - we now fix Microsoft's lack of capitalisation in language names
* Change to not passing schema location to TranslationXmlLoader
* Remove schema from test data
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 24 Jun 2012 15:50:45 +0100 |
parents | 31fdc90f3556 |
children |
comparison
equal
deleted
inserted
replaced
44:981a375ebbd5 | 45:7502653a71a0 |
---|---|
32 public void TestTranslationSetName() | 32 public void TestTranslationSetName() |
33 { | 33 { |
34 AbstractTranslationSet translations = GetTranslationSet("en"); | 34 AbstractTranslationSet translations = GetTranslationSet("en"); |
35 Assert.AreEqual("English", translations.LanguageName); | 35 Assert.AreEqual("English", translations.LanguageName); |
36 translations = GetTranslationSet("it"); | 36 translations = GetTranslationSet("it"); |
37 Assert.AreEqual("italiano", translations.LanguageName); | 37 Assert.AreEqual("Italiano", translations.LanguageName); |
38 translations = GetTranslationSet("zz"); | 38 translations = GetTranslationSet("zz"); |
39 Assert.AreEqual("Unknown (zz)", translations.LanguageName); | 39 Assert.AreEqual("Unknown (zz)", translations.LanguageName); |
40 } | 40 } |
41 | 41 |
42 [Test()] | 42 [Test()] |