コード例 #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));
        }
コード例 #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"));
        }