Exemple #1
0
 public void EventGridFilterConverterWhenConvertedThrowsException(ApiAdvancedFilter filter, string destinationFilterName)
 {
     // Arrange
     // Act
     // Assert
     Assert.NotNull(destinationFilterName);
     Assert.ThrowsAny <Exception>(() => filter.Convert());
 }
Exemple #2
0
        public void EventGridFilterConverterWhenConvertedCreatesFilters(ApiAdvancedFilter filter, string destinationFilterName)
        {
            // Arrange
            // Act
            var result = filter.Convert();

            //Assert
            Assert.NotNull(result);
            Assert.NotNull(result.Key);
            Assert.Equal(destinationFilterName, result.GetType().Name);
        }