diff --git a/docs/docs/test-lifecycle/property-injection.md b/docs/docs/test-lifecycle/property-injection.md index e770ab1fc1..5f276dd4bb 100644 --- a/docs/docs/test-lifecycle/property-injection.md +++ b/docs/docs/test-lifecycle/property-injection.md @@ -94,12 +94,8 @@ public class PropertySetterTests Console.WriteLine($"Property7: {Property7}"); } - // Static data source method for Property2 - public static IEnumerable GetMethodData() - { - yield return "method_data_1"; - yield return "method_data_2"; - } + // Static data source method for Property2 - returns a single value for property injection + public static string GetMethodData() => "method_data_value"; } // Example model for ClassDataSource