mirror of
https://github.com/Smaug123/unofficial-nunit-runner
synced 2025-10-10 03:28:40 +00:00
Find private properties (#6)
This commit is contained in:
@@ -190,7 +190,14 @@ module TestFixture =
|
||||
| TestKind.Data data -> data |> Seq.map (fun args -> runOne test.Method (Array.ofList args))
|
||||
| TestKind.Single -> Seq.singleton (runOne test.Method [||])
|
||||
| TestKind.Source s ->
|
||||
let args = test.Method.DeclaringType.GetProperty s
|
||||
let args =
|
||||
test.Method.DeclaringType.GetProperty (
|
||||
s,
|
||||
BindingFlags.Public
|
||||
||| BindingFlags.NonPublic
|
||||
||| BindingFlags.Instance
|
||||
||| BindingFlags.Static
|
||||
)
|
||||
|
||||
args.GetValue null :?> IEnumerable<obj>
|
||||
|> Seq.map (fun arg ->
|
||||
|
Reference in New Issue
Block a user