diff --git a/CheatSheets/XUnitCheatSheet.cs b/CheatSheets/XUnitCheatSheet.cs index df609f1..4359895 100644 --- a/CheatSheets/XUnitCheatSheet.cs +++ b/CheatSheets/XUnitCheatSheet.cs @@ -63,7 +63,7 @@ public static IEnumerable SamplePropertyDataProperty /// Test data /// Expected Result [Theory] - [PropertyData("SamplePropertyDataProperty")] + [MemberData(nameof(SamplePropertyDataProperty))] public void PropertyDataExample(int number, bool expectedResult) { Console.WriteLine("AccountTests.PropertyDataExample(int {0}, bool {1})", number, expectedResult);