public void matchesReturnsResponseFromMatchesPlainLiterallWithLanguageCall() { ResourceSpecifierResponder specifierTrue = new ResourceSpecifierResponder(true); ResourceSpecifierResponder specifierFalse = new ResourceSpecifierResponder(false); PlainLiteral instance = new PlainLiteral("whizz", "de"); Assert.IsTrue( instance.Matches( specifierTrue )); Assert.IsFalse( instance.Matches( specifierFalse )); }
public void matchesCallsMatchesPlainLiteralWithLanguageOnSpecifier() { ResourceSpecifierStore specifier = new ResourceSpecifierStore(); PlainLiteral instance = new PlainLiteral("whizz", "de"); instance.Matches( specifier ); Assert.IsTrue( specifier.WasMatchesPlainLiteralCalledWith("whizz", "de") ); }