Skip to content

Commit

Permalink
Fixes Adding @ignore to an Examples block generates invalid code for …
Browse files Browse the repository at this point in the history
…NUnit v3+ issue (#103)
  • Loading branch information
gasparnagy committed Apr 16, 2024
1 parent 48976c8 commit fffbd91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void SetRow(TestClassGenerationContext generationContext, CodeMemberMetho
}

if (isIgnored)
args.Add(new CodeAttributeArgument("Ignored", new CodePrimitiveExpression(true)));
args.Add(new CodeAttributeArgument("IgnoreReason", new CodePrimitiveExpression("Ignored by @ignore tag")));

CodeDomHelper.AddAttribute(testMethod, ROW_ATTR, args.ToArray());
}
Expand Down

0 comments on commit fffbd91

Please sign in to comment.