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