Example #1
0
        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));
        }
Example #2
0
        public void matchesCallsMatchesBlankNodeOnSpecifier()
        {
            ResourceSpecifierStore specifier = new ResourceSpecifierStore();
            BlankNode instance = new BlankNode();

            instance.Matches(specifier);

            Assert.IsTrue(specifier.WasMatchesBlankNodeCalled());
        }