Skip to content

Commit

Permalink
Fix xunit2 generator test for NonParallelizable collection attribute (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shack05 committed Jun 16, 2021
1 parent e82499a commit 7d82ae6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,10 @@ public void XUnit2TestGeneratorProvider_WithFeatureWithMatchingTag_ShouldAddNonP

// ASSERT
var attributes = code.Class().CustomAttributes().ToArray();
attributes.Should()
.ContainSingle(a => a.Name == XUnitCollectionAttribute)
.Which.Arguments.Should().BeEquivalentTo(new[] { new CodeAttributeArgument(new CodePrimitiveExpression("NonParallelizable")) });
attributes.Should().ContainSingle(a => a.Name == XUnitCollectionAttribute);
var collectionAttribute = attributes.Single(a => a.Name == XUnitCollectionAttribute);
collectionAttribute.Arguments.Should().HaveCount(1);
collectionAttribute.Arguments[0].Value.Should().BeEquivalentTo(new CodePrimitiveExpression("SpecFlowNonParallelizableFeatures"));
}

[Fact]
Expand Down

0 comments on commit 7d82ae6

Please sign in to comment.