Пример #1
0
        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));
        }
Пример #2
0
        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"));
        }