1 // OpenTween - Client of Twitter
2 // Copyright (c) 2012 the40san <http://sourceforge.jp/users/the40san/>
3 // (c) 2014 kim_upsilon (@kim_upsilon) <https://upsilo.net/~upsilon/>
4 // All rights reserved.
6 // This file is part of OpenTween.
8 // This program is free software; you can redistribute it and/or modify it
9 // under the terms of the GNU General public License as published by the Free
10 // Software Foundation; either version 3 of the License, or (at your option)
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General public License
18 // You should have received a copy of the GNU General public License along
19 // with this program. If not, see <http://www.gnu.org/licenses/>, or write to
20 // the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
21 // Boston, MA 02110-1301, USA.
25 using System.Net.Http;
27 using System.Threading.Tasks;
30 using Xunit.Extensions;
42 [InlineData("ja", 67)]
43 public void GetLanguageEnumFromIndex_Test(string expected, int index)
45 Assert.Equal(expected, Bing.GetLanguageEnumFromIndex(index));
51 [InlineData(67, "ja")]
52 public void GetIndexFromLanguageEnum_Test(int expected, string lang)
54 Assert.Equal(expected, Bing.GetIndexFromLanguageEnum(lang));