public void EventGridFilterConverterWhenConvertedThrowsException(ApiAdvancedFilter filter, string destinationFilterName) { // Arrange // Act // Assert Assert.NotNull(destinationFilterName); Assert.ThrowsAny <Exception>(() => filter.Convert()); }
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); }