コード例 #1
0
        public void TestThatUnmappedLanguageCodeReturnsPassedInLanguageCode()
        {
            string sLanguageCode = "de-DE";

            TtsLanguageCodeMapping ttsLanguageCodeMapping = new TtsLanguageCodeMapping(new TestTtsLanguageMappingDAL());

            Assert.That(ttsLanguageCodeMapping.GetMappedLanguageCodeFor(sLanguageCode), Is.EqualTo(sLanguageCode));
        }
コード例 #2
0
        public void TestThatEmptyMappingReturnPassedInLanguageCode()
        {
            string sLanguageCode = "en-US";

            TtsLanguageCodeMapping ttsLanguageCodeMapping = new TtsLanguageCodeMapping(null);

            Assert.That(ttsLanguageCodeMapping.GetMappedLanguageCodeFor(sLanguageCode), Is.EqualTo(sLanguageCode));
        }
コード例 #3
0
        public void TestThatLanguageCodeIsRemapped()
        {
            string sOriginalLanguageCode = "en-AU";
            string sExpectedLanguageCode = "en-GB";

            TtsLanguageCodeMapping ttsLanguageCodeMapping = new TtsLanguageCodeMapping(new TestTtsLanguageMappingDAL());

            Assert.That(ttsLanguageCodeMapping.GetMappedLanguageCodeFor(sOriginalLanguageCode), Is.EqualTo(sExpectedLanguageCode));
        }