Test updates to fix enum comparison issue

This commit is contained in:
Fabio Cavalcante 2024-09-02 21:49:35 -07:00
Родитель 297851758b
Коммит 10a963e515
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -124,7 +124,7 @@ namespace Microsoft.Azure.Functions.Worker.Tests
Assert.Equal(typeof(string), q.Type);
Assert.Contains(PropertyBagKeys.ConverterFallbackBehavior, q.Properties.Keys);
Assert.Contains(PropertyBagKeys.BindingAttributeSupportedConverters, q.Properties.Keys);
Assert.Equal("Default", q.Properties[PropertyBagKeys.ConverterFallbackBehavior].ToString());
Assert.Equal("Allow", q.Properties[PropertyBagKeys.ConverterFallbackBehavior].ToString());
Assert.Contains(new Dictionary<Type, List<Type>>().ToString(), q.Properties[PropertyBagKeys.BindingAttributeSupportedConverters].ToString());
});
@ -182,7 +182,7 @@ namespace Microsoft.Azure.Functions.Worker.Tests
Assert.Equal(typeof(QueueMessage), q.Type);
Assert.Contains(PropertyBagKeys.ConverterFallbackBehavior, q.Properties.Keys);
Assert.Contains(PropertyBagKeys.BindingAttributeSupportedConverters, q.Properties.Keys);
Assert.Equal("Default", q.Properties[PropertyBagKeys.ConverterFallbackBehavior].ToString());
Assert.Equal("Allow", q.Properties[PropertyBagKeys.ConverterFallbackBehavior].ToString());
Assert.Contains(new Dictionary<Type, List<Type>>().ToString(), q.Properties[PropertyBagKeys.BindingAttributeSupportedConverters].ToString());
});
}
@ -231,7 +231,7 @@ namespace Microsoft.Azure.Functions.Worker.Tests
Assert.Equal(typeof(TableClient), q.Type);
Assert.Contains(PropertyBagKeys.ConverterFallbackBehavior, q.Properties.Keys);
Assert.Contains(PropertyBagKeys.BindingAttributeSupportedConverters, q.Properties.Keys);
Assert.Equal("Default", q.Properties[PropertyBagKeys.ConverterFallbackBehavior].ToString());
Assert.Equal("Allow", q.Properties[PropertyBagKeys.ConverterFallbackBehavior].ToString());
Assert.Contains(new Dictionary<Type, List<Type>>().ToString(), q.Properties[PropertyBagKeys.BindingAttributeSupportedConverters].ToString());
});