public static GetLanguageEnumFromIndex ( int index ) : string | ||
index | int | |
return | string |
public void GetLanguageEnumFromIndex_Test(string expected, int index) => Assert.Equal(expected, Bing.GetLanguageEnumFromIndex(index));
public void GetLanguageEnumFromIndexTest() { Assert.That(bing.GetLanguageEnumFromIndex(0), Is.EqualTo(LanguageTable[0])); Assert.That(bing.GetLanguageEnumFromIndex(1), Is.EqualTo(LanguageTable[1])); Assert.That(bing.GetLanguageEnumFromIndex(LanguageTable.Count - 1), Is.EqualTo(LanguageTable[LanguageTable.Count - 1])); }