public void CONVERT_TO_ARRAY_FILTER_SHOULD_NOT_CONVERT_WHEN_VALUE_IS_NOT_STRING() { //Arrange const string key = "key"; var value = new object(); var filter = new ConvertToArrayFilter { SourceKey = key, Seperators = "," }; var eventProperties = new Dictionary <string, object> { { key, value } }; //Act filter.PrepareEvent(eventProperties); //value eventProperties[key].Should().Be(value); }
public void CONVERT_TO_ARRAY_FILTER_SHOULD_RETURN_SPLIT_ARRAY(string separators, string value, string[] expected) { //Arrange const string key = "key"; var filter = new ConvertToArrayFilter { SourceKey = key, Seperators = separators }; var eventProperties = new Dictionary <string, object> { { key, value } }; //Act filter.PrepareEvent(eventProperties); //value eventProperties[key].Should().BeEquivalentTo(expected); }