Skip to content

Commit 8ed2baf

Browse files
committed
Use the new AddRange method introduced in xUnit.net 2.6.5
1 parent 7b10284 commit 8ed2baf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/PublicApi.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ public TargetFrameworksTheoryData()
3737
var project = XDocument.Load(csprojPath);
3838
var targetFrameworks = project.XPathSelectElement("/Project/PropertyGroup/TargetFrameworks")
3939
?? throw new Exception($"TargetFrameworks element not found in {csprojPath}");
40-
foreach (var targetFramework in targetFrameworks.Value.Split(';'))
41-
{
42-
Add(targetFramework);
43-
}
40+
AddRange(targetFrameworks.Value.Split(';'));
4441
}
4542
}
4643
}

0 commit comments

Comments
 (0)