Skip to content

Commit 3b25539

Browse files
asbjornuJakeGinnivan
authored andcommitted
Use the AvailableVariables property instead of doing GetProperties() everywhere.
1 parent 8271863 commit 3b25539

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/GitVersionTask.Tests/GetVersionTaskTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ public void OutputsShouldMatchVariableProvider()
1616
.Where(p => p.GetCustomAttributes(typeof(OutputAttribute), false).Any())
1717
.Select(p => p.Name);
1818

19-
var variablesProperties = typeof(VersionVariables)
20-
.GetProperties()
21-
.Select(p => p.Name)
22-
.Except(new[] { "AvailableVariables", "Item" });
19+
var variablesProperties = VersionVariables.AvailableVariables;
2320

2421
taskProperties.ShouldBe(variablesProperties, ignoreOrder: true);
2522
}

0 commit comments

Comments
 (0)