public void matchesReturnsResponseFromMatchesTypedLiterallWithoutLanguageCall() { ResourceSpecifierResponder specifierTrue = new ResourceSpecifierResponder(true); ResourceSpecifierResponder specifierFalse = new ResourceSpecifierResponder(false); TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/type"); Assert.IsTrue(instance.Matches(specifierTrue)); Assert.IsFalse(instance.Matches(specifierFalse)); }
public void matchesCallsMatchesTypedLiteralWithoutLanguageOnSpecifier() { ResourceSpecifierStore specifier = new ResourceSpecifierStore(); TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/type"); instance.Matches(specifier); Assert.IsTrue(specifier.WasMatchesTypedLiteralCalledWith("whizz", "http://example.com/type")); }