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 matchesCallsMatchesUriRefOnSpecifier() { ResourceSpecifierStore specifier = new ResourceSpecifierStore(); UriRef instance = new UriRef("http://example.com/subject"); instance.Matches(specifier); Assert.IsTrue(specifier.WasMatchesUriRefCalledWith("http://example.com/subject")); }