|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using System.Text; |
| 5 | +using System.Threading.Tasks; |
| 6 | + |
| 7 | +namespace World.Net.UnitTests.Countries |
| 8 | +{ |
| 9 | + public class LithuaniaTest : AssertCountryTestBase |
| 10 | + { |
| 11 | + public static CountryIdentifier Id => CountryIdentifier.Lithuania; |
| 12 | + public string Name { get; } = "Lithuania"; |
| 13 | + public string OfficialName { get; } = "Republic of Lithuania"; |
| 14 | + public string NativeName { get; } = "Lietuvos Respublika"; |
| 15 | + public string Capital { get; } = "Vilnius"; |
| 16 | + public int NumericCode { get; } = 440; |
| 17 | + public string ISO2Code { get; } = "LT"; |
| 18 | + public string ISO3Code { get; } = "LTU"; |
| 19 | + public string[] CallingCode { get; } = ["+370"]; |
| 20 | + private static readonly (string Name, string IsoCode, string Type)[] States = |
| 21 | + [ |
| 22 | + new("Alytus County", "LT-AL", "County"), |
| 23 | + new("Kaunas County", "LT-KU", "County"), |
| 24 | + new("Klaipėda County", "LT-KL", "County"), |
| 25 | + new("Marijampolė County", "LT-MR", "County"), |
| 26 | + new("Panevėžys County", "LT-PN", "County"), |
| 27 | + new("Šiauliai County", "LT-SA", "County"), |
| 28 | + new("Tauragė County", "LT-TA", "County"), |
| 29 | + new("Telšiai County", "LT-TE", "County"), |
| 30 | + new("Utena County", "LT-UT", "County"), |
| 31 | + new("Vilnius County", "LT-VL", "County") |
| 32 | + ]; |
| 33 | + |
| 34 | + |
| 35 | + [Fact] |
| 36 | + public void GetCountry_ReturnsCorrectInformation_ForLithuania() |
| 37 | + { |
| 38 | + var country = CountryProvider.GetCountry(Id); |
| 39 | + |
| 40 | + AssertCorrectInformation( |
| 41 | + country, |
| 42 | + Id, |
| 43 | + Name, |
| 44 | + OfficialName, |
| 45 | + NativeName, |
| 46 | + Capital, |
| 47 | + NumericCode, |
| 48 | + ISO2Code, |
| 49 | + ISO3Code, |
| 50 | + CallingCode, |
| 51 | + States |
| 52 | + ); |
| 53 | + } |
| 54 | + } |
| 55 | +} |
0 commit comments