We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64c3b13 commit 56310d1Copy full SHA for 56310d1
1 file changed
test/CountryData.UnitTests/CountryHelperTests.cs
@@ -33,4 +33,18 @@ public void GetCountryByCode_WithCorrectCode_ShouldReturnCountry(string shortCod
33
country.Should().NotBeNull();
34
country.CountryShortCode.Should().Be(shortCode);
35
}
36
+
37
+ [Theory]
38
+ [InlineData("GHA")]
39
+ [InlineData("G")]
40
+ [InlineData("USB")]
41
+ public void GetCountryByCode_WithInCorrectCode_ShouldReturnNull(string shortCode)
42
+ {
43
+ //Act
44
+ var country = _countryHelper.GetCountryByCode(shortCode);
45
46
+ //Assert
47
+ country.Should().BeNull();
48
+ }
49
50
0 commit comments