public void GetMetadata_returns_metadata_which_matches_a_criterion_for_label_equals_a_constant() { // Arrange var criterion = Criterion.FromElementPredicateAndConstantValue("label", "=", "one"); var sut = HasLabelConversionStrategy.GetMetadata(); // Act var result = sut.CanConvert(criterion); // Assert Assert.That(result, Is.True); }
public void GetMetadata_returns_metadata_which_does_not_match_a_criterion_for_the_predicate_function_hasallof() { // Arrange var criterion = Criterion.FromElementAndPredicateFunctionWithConstantValues("labels", "hasallof", "one", "two"); var sut = HasLabelConversionStrategy.GetMetadata(); // Act var result = sut.CanConvert(criterion); // Assert Assert.That(result, Is.False); }
public void GetMetadata_returns_metadata_which_matches_a_criterion_for_labels_hasanyof_some_parameters() { // Arrange var criterion = Criterion.FromElementAndPredicateFunctionWithConstantValues("labels", "hasanyof", "one", "two"); var sut = HasLabelConversionStrategy.GetMetadata(); // Act var result = sut.CanConvert(criterion); // Assert Assert.That(result, Is.True); }