public async Task ShouldConvertStringToStringType()
 {
     var result = await _stepArgumentTypeConverter.ConvertAsync("testValue", typeof(string), _enUSCulture);
     result.Should().Be("testValue");
 }
Exemple #2
0
 public static async Task <object> ConvertAsync(this IStepArgumentTypeConverter converter, object value, Type typeToConvertTo, CultureInfo cultureInfo)
 {
     return(await converter.ConvertAsync(value, new RuntimeBindingType(typeToConvertTo), cultureInfo));
 }