Exemplo n.º 1
0
        public void GetMetadata_returns_metadata_which_does_not_match_a_criterion_for_the_predicate_function_hasanyof()
        {
            // Arrange
            var criterion = Criterion.FromElementAndPredicateFunctionWithConstantValues("labels", "hasanyof", "one", "two");
            var sut       = HasAllLabelsConversionStrategy.GetMetadata();

            // Act
            var result = sut.CanConvert(criterion);

            // Assert
            Assert.That(result, Is.False);
        }
Exemplo n.º 2
0
        public void GetMetadata_returns_metadata_which_matches_a_criterion_for_labels_hasallof_some_parameters()
        {
            // Arrange
            var criterion = Criterion.FromElementAndPredicateFunctionWithConstantValues("labels", "hasallof", "one", "two");
            var sut       = HasAllLabelsConversionStrategy.GetMetadata();

            // Act
            var result = sut.CanConvert(criterion);

            // Assert
            Assert.That(result, Is.True);
        }