|
| 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 LuxembourgTest : AssertCountryTestBase |
| 10 | + { |
| 11 | + public static CountryIdentifier Id => CountryIdentifier.Luxembourg; |
| 12 | + public string Name { get; } = "Luxembourg"; |
| 13 | + public string OfficialName { get; } = "Grand Duchy of Luxembourg"; |
| 14 | + public string NativeName { get; } = "Groussherzogtum Lëtzebuerg"; |
| 15 | + public string Capital { get; } = "Luxembourg City"; |
| 16 | + public int NumericCode { get; } = 442; |
| 17 | + public string ISO2Code { get; } = "LU"; |
| 18 | + public string ISO3Code { get; } = "LUX"; |
| 19 | + public string[] CallingCode { get; } = ["+352"]; |
| 20 | + private static readonly (string Name, string IsoCode, string Type)[] States = |
| 21 | + [ |
| 22 | + new("Capellen", "LU-CA", "Canton"), |
| 23 | + new("Clervaux", "LU-CL", "Canton"), |
| 24 | + new("Diekirch", "LU-DI", "Canton"), |
| 25 | + new("Echternach", "LU-EC", "Canton"), |
| 26 | + new("Esch-sur-Alzette", "LU-ES", "Canton"), |
| 27 | + new("Grevenmacher", "LU-GR", "Canton"), |
| 28 | + new("Luxembourg", "LU-LU", "Canton"), |
| 29 | + new("Mersch", "LU-ME", "Canton"), |
| 30 | + new("Redange", "LU-RD", "Canton"), |
| 31 | + new("Remich", "LU-RM", "Canton"), |
| 32 | + new("Vianden", "LU-VD", "Canton"), |
| 33 | + new("Wiltz", "LU-WI", "Canton") |
| 34 | + ]; |
| 35 | + |
| 36 | + |
| 37 | + [Fact] |
| 38 | + public void GetCountry_ReturnsCorrectInformation_ForLuxembourg() |
| 39 | + { |
| 40 | + var country = CountryProvider.GetCountry(Id); |
| 41 | + |
| 42 | + AssertCorrectInformation( |
| 43 | + country, |
| 44 | + Id, |
| 45 | + Name, |
| 46 | + OfficialName, |
| 47 | + NativeName, |
| 48 | + Capital, |
| 49 | + NumericCode, |
| 50 | + ISO2Code, |
| 51 | + ISO3Code, |
| 52 | + CallingCode, |
| 53 | + States |
| 54 | + ); |
| 55 | + } |
| 56 | + } |
| 57 | +} |
0 commit comments