Skip to content

Commit

Permalink
fix: Make tests runnable in VS 2019 Test Explorer
Browse files Browse the repository at this point in the history
Visual Studio 2019's new test explorer seems to have issues when test case names contain parentheses. To work around this, remove the parenthesis from InlineData and thus from the test case name.
  • Loading branch information
ap0llo committed Aug 24, 2019
1 parent 81f7d16 commit 7345051
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,10 +644,23 @@ public void Serializer_respects_BulletListStyle_serialization_option(MdBulletLis
}

[Theory]
[InlineData(MdOrderedListStyle.Dot, '.')]
[InlineData(MdOrderedListStyle.Parenthesis, ')')]
public void Serializer_respects_OrderedListStyle_serialization_option(MdOrderedListStyle style, char listItemCharacter)
[InlineData(MdOrderedListStyle.Dot)]
[InlineData(MdOrderedListStyle.Parenthesis)]
public void Serializer_respects_OrderedListStyle_serialization_option(MdOrderedListStyle style)
{
char listItemCharacter;
switch (style)
{
case MdOrderedListStyle.Dot:
listItemCharacter = '.';
break;
case MdOrderedListStyle.Parenthesis:
listItemCharacter = ')';
break;
default:
throw new NotImplementedException();
}

var options = new MdSerializationOptions()
{
OrderedListStyle = style
Expand Down

0 comments on commit 7345051

Please sign in to comment.