{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/10789","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/10789/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/10789/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/10789/events","html_url":"https://github.com/dotnet/roslyn/pull/10789","id":150430889,"number":10789,"title":"Reflect on test objects to avoid dynamic in script file","user":{"login":"basoundr","id":10550513,"avatar_url":"https://avatars.githubusercontent.com/u/10550513?v=3","gravatar_id":"","url":"https://api.github.com/users/basoundr","html_url":"https://github.com/basoundr","followers_url":"https://api.github.com/users/basoundr/followers","following_url":"https://api.github.com/users/basoundr/following{/other_user}","gists_url":"https://api.github.com/users/basoundr/gists{/gist_id}","starred_url":"https://api.github.com/users/basoundr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basoundr/subscriptions","organizations_url":"https://api.github.com/users/basoundr/orgs","repos_url":"https://api.github.com/users/basoundr/repos","events_url":"https://api.github.com/users/basoundr/events{/privacy}","received_events_url":"https://api.github.com/users/basoundr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-22T17:45:05Z","updated_at":"2016-04-22T18:26:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/10789","html_url":"https://github.com/dotnet/roslyn/pull/10789","diff_url":"https://github.com/dotnet/roslyn/pull/10789.diff","patch_url":"https://github.com/dotnet/roslyn/pull/10789.patch"},"body":"Currently we use dynamic objects in the runner.csx to represent the test objects that are procured from the csx files that contains the information about the tests.\r\n\r\nBecause of the Script issue #10693(this particular issue talks about CoreClr but this is a general issue) we are not able to bind dynamic expressions in csx scripts if the script is run programmatically. This issue prevents us from running run_and_report.csx and automation.csx\r\n\r\nThis change circumvents this issue by using reflection. We reflect on the test objects and produce a new reflected_test_object which has the same members as the original test members.When the CSharpScripting issue is fixed, we can remove this reflection.\r\n\r\nAlso some minor cleanup\r\n\r\nTagging @KevinH-MS @rchande @TyOverby for review"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/213542547","html_url":"https://github.com/dotnet/roslyn/pull/10789#issuecomment-213542547","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/10789","id":213542547,"user":{"login":"rchande","id":3751401,"avatar_url":"https://avatars.githubusercontent.com/u/3751401?v=3","gravatar_id":"","url":"https://api.github.com/users/rchande","html_url":"https://github.com/rchande","followers_url":"https://api.github.com/users/rchande/followers","following_url":"https://api.github.com/users/rchande/following{/other_user}","gists_url":"https://api.github.com/users/rchande/gists{/gist_id}","starred_url":"https://api.github.com/users/rchande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchande/subscriptions","organizations_url":"https://api.github.com/users/rchande/orgs","repos_url":"https://api.github.com/users/rchande/repos","events_url":"https://api.github.com/users/rchande/events{/privacy}","received_events_url":"https://api.github.com/users/rchande/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T18:26:49Z","updated_at":"2016-04-22T18:26:49Z","body":"I can give you the branch if you want to keep working on it."}}