public void matchesCallsMatchesPlainLiteralWithLanguageOnSpecifier() { ResourceSpecifierStore specifier = new ResourceSpecifierStore(); PlainLiteral instance = new PlainLiteral("whizz", "de"); instance.Matches( specifier ); Assert.IsTrue( specifier.WasMatchesPlainLiteralCalledWith("whizz", "de") ); }
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")); }
public void matchesCallsMatchesUriRefOnSpecifier() { ResourceSpecifierStore specifier = new ResourceSpecifierStore(); UriRef instance = new UriRef("http://example.com/subject"); instance.Matches(specifier); Assert.IsTrue(specifier.WasMatchesUriRefCalledWith("http://example.com/subject")); }
public void matchesCallsMatchesBlankNodeOnSpecifier() { ResourceSpecifierStore specifier = new ResourceSpecifierStore(); BlankNode instance = new BlankNode(); instance.Matches(specifier); Assert.IsTrue(specifier.WasMatchesBlankNodeCalled()); }