Exemplo n.º 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 ));
 }
Exemplo n.º 2
0
 public void matchesCallsMatchesPlainLiteralWithLanguageOnSpecifier() {
   ResourceSpecifierStore specifier = new ResourceSpecifierStore();
   PlainLiteral instance = new PlainLiteral("whizz", "de");
   
   instance.Matches( specifier );
   
   Assert.IsTrue( specifier.WasMatchesPlainLiteralCalledWith("whizz", "de") );
 }