Skip to content

Commit 4f696d8

Browse files
committed
Merge pull request #11 from CraigRichards/AddDecimalAsAValidFormatParameter
Updated ExpressionExtensions to support decimal types
2 parents 720b13a + 920b0e3 commit 4f696d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TestStack.BDDfy/Scanners/StepScanners/Fluent/ExpressionExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ private static IEnumerable<object> ExtractConstants(ConstantExpression constantE
172172
else
173173
{
174174
if (constantExpression.Type == typeof(string) ||
175+
constantExpression.Type == typeof(decimal) ||
175176
constantExpression.Type.IsPrimitive ||
176177
constantExpression.Type.IsEnum ||
177178
constantExpression.Value == null)

0 commit comments

Comments
 (0)