public void GetPath_UnknownCultureInfo_ReturnsDefaultPath() { var info = new ResourceDictionaryInfo("Name", Constants.Default.Dictionary2Path); var actual = info.GetPath(CultureInfo.GetCultureInfo("fr-FR")); Assert.AreEqual(Constants.Default.Dictionary2Path, actual); }
public void GetPath_ReturnsPath_Test2() { var resourceDictionaries = new Dictionary <CultureInfo, string> { { CultureInfo.GetCultureInfo("ru-RU"), Constants.RuRu.Dictionary1Path }, { CultureInfo.GetCultureInfo("en-US"), Constants.EnUs.Dictionary1Path } }; var info = new ResourceDictionaryInfo("Name", CultureInfo.GetCultureInfo("ru-RU"), resourceDictionaries); var actual = info.GetPath(CultureInfo.GetCultureInfo("ru-RU")); Assert.AreEqual(Constants.RuRu.Dictionary1Path, actual); }