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 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 matchesReturnsResponseFromMatchesUriRefCall() { ResourceSpecifierResponder specifierTrue = new ResourceSpecifierResponder(true); ResourceSpecifierResponder specifierFalse = new ResourceSpecifierResponder(false); UriRef instance = new UriRef("http://example.com/subject"); Assert.IsTrue(instance.Matches(specifierTrue)); Assert.IsFalse(instance.Matches(specifierFalse)); }
public void matchesReturnsResponseFromMatchesUriRefCall() { ResourceSpecifierResponder specifierTrue = new ResourceSpecifierResponder(true); ResourceSpecifierResponder specifierFalse = new ResourceSpecifierResponder(false); BlankNode instance = new BlankNode(); Assert.IsTrue(instance.Matches(specifierTrue)); Assert.IsFalse(instance.Matches(specifierFalse)); }