We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2f99f1 commit 64c3b13Copy full SHA for 64c3b13
1 file changed
test/CountryData.UnitTests/CountryHelperTests.cs
@@ -21,4 +21,16 @@ public void GetCountryData_ShouldReturnListOfCountryData()
21
countryData.Should().NotBeNullOrEmpty();
22
}
23
24
+ [Theory]
25
+ [InlineData("GH")]
26
+ [InlineData("US")]
27
+ public void GetCountryByCode_WithCorrectCode_ShouldReturnCountry(string shortCode)
28
+ {
29
+ //Act
30
+ var country = _countryHelper.GetCountryByCode(shortCode);
31
+
32
+ //Assert
33
+ country.Should().NotBeNull();
34
+ country.CountryShortCode.Should().Be(shortCode);
35
+ }
36
0 commit comments