Exemple #1
0
 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 ));
 }
Exemple #2
0
        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));
        }
Exemple #3
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));
        }
Exemple #4
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));
        }