You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: The static member used as theory data must be statically initialized
5
+
category: Usage
6
+
severity: Warning
7
+
v2: true
8
+
v3: true
9
+
---
10
+
11
+
## Cause
12
+
13
+
A violation of this rule occurs when a member referenced by `[MemberData]` is not statically initialized.
14
+
15
+
## Reason for rule
16
+
17
+
Data provided by a member data source must be statically initialized so that it can be used to provide data for the tests that reference it with `[MemberData]`. Failing to initialize the data source will result in no data rows.
18
+
19
+
## How to fix violations
20
+
21
+
To fix a violation of this rule, either initialize the value inline or via a static constructor.
0 commit comments