Example #1
0
 public void TryRetrieveInfoFromString()
 {
     Assert.True(StringsUtility.TryRetrieveInfoFromString("Skyrim_French.ILSTRINGS", out var source, out var language, out var modName));
     Assert.Equal(StringsSource.IL, source);
     Assert.Equal(Language.French, language);
     Assert.Equal("Skyrim", modName.ToString());
 }
Example #2
0
 public void TryRetrieveInfoFromString_Full_Fail()
 {
     Assert.False(StringsUtility.TryRetrieveInfoFromString(
                      StringsLanguageFormat.FullName,
                      "Skyrim_FrenchILSTRINGS",
                      out var _, out var _, out var _));
     Assert.False(StringsUtility.TryRetrieveInfoFromString(
                      StringsLanguageFormat.FullName,
                      "SkyrimFrench.ILSTRINGS",
                      out var _, out var _, out var _));
     Assert.False(StringsUtility.TryRetrieveInfoFromString(
                      StringsLanguageFormat.FullName,
                      "Skyrim_fr.ILSTRINGS",
                      out var _, out var _, out var _));
 }
Example #3
0
 public void TryRetrieveInfoFromString_Iso_Fail()
 {
     Assert.False(StringsUtility.TryRetrieveInfoFromString(
                      StringsLanguageFormat.Iso,
                      "Skyrim_frILSTRINGS",
                      out var _, out var _, out var _));
     Assert.False(StringsUtility.TryRetrieveInfoFromString(
                      StringsLanguageFormat.Iso,
                      "Skyrimfr.ILSTRINGS",
                      out var _, out var _, out var _));
     Assert.False(StringsUtility.TryRetrieveInfoFromString(
                      StringsLanguageFormat.Iso,
                      "Skyrim_French.ILSTRINGS",
                      out var _, out var _, out var _));
     Assert.False(StringsUtility.TryRetrieveInfoFromString(
                      StringsLanguageFormat.Iso,
                      "Skyrim_zz.ILSTRINGS",
                      out var _, out var _, out var _));
 }
Example #4
0
 public void TryRetrieveInfoFromString_Fail()
 {
     Assert.False(StringsUtility.TryRetrieveInfoFromString("Skyrim_FrenchILSTRINGS", out var _, out var _, out var _));
     Assert.False(StringsUtility.TryRetrieveInfoFromString("SkyrimFrench.ILSTRINGS", out var _, out var _, out var _));
 }