Skip to content

Commit

Permalink
Improved UT
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlendea committed Oct 17, 2020
1 parent fbc5c01 commit c5d04bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion UnitTests/Service/ChannelMatcherTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,21 @@ public void ChannelNamesDoNotMatch_WithAliasWithoutCountry(
Assert.IsFalse(channelMatcher.DoesMatch(channelName, providerName, country2: null));
}

[TestCase("Pro TV", "MD: Pro TV")]
[TestCase("Pro TV", "MD: ProTV Chisinau")]
[Test]
public void ChannelNamesDoNotMatch_WithoutAliasWithoutCountry(
string definedName,
string providerName)
{
// Arrange
ChannelName channelName = GetChannelName(definedName, alias: null);

Assert.IsFalse(channelMatcher.DoesMatch(channelName, providerName, country2: null));
// Act
bool isMatch = channelMatcher.DoesMatch(channelName, providerName, country2: null);

// Assert
Assert.That(isMatch, Is.False);
}

[TestCase(" MD| Publika", "MD", "MDPUBLIKA")]
Expand Down

0 comments on commit c5d04bb

Please sign in to comment.