Код: Выделить всё
public void FooWithFilter(string fooId, decimal? amount)
Код: Выделить всё
[InlineData("123", null)]
Код: Выделить всё
[InlineData("123", 610)]
Код: Выделить всё
System.ArgumentException Object of type 'System.Int32' cannot be
converted to type 'System.Nullable`1[System.Decimal]'.
Код: Выделить всё
An attribute argument must be a constant expression, type of expression
or array creation expression of an attribute parameter type.
Подробнее здесь: https://stackoverflow.com/questions/515 ... le-decimal
Мобильная версия