Decimal values cannot be used in Attributes
One of the things I like with
MbUnit is the parameterized test methods with
RowTestAttribute. This gives you the ability to write just a single test case to test a method with parameters.
As I was coding my formula parser i bumped into a limitation on .NET's attributes where you cannot supply a decimal value in an Attribute like [Row(2.0m, 3.0m)], it will raise a compile time error. Instead you can only use a double or a float. The types that can be used in parameters are defined
here, thanks to a comment i got from an
issue i raised for the MbUnit project.