Exemplo n.º 1
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));
        }
Exemplo n.º 2
0
        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"));
        }