{"action":"created","issue":{"url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/724","repository_url":"https://api.github.com/repos/sschmid/Entitas-CSharp","labels_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/724/comments","events_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/724/events","html_url":"https://github.com/sschmid/Entitas-CSharp/issues/724","id":333040290,"node_id":"MDU6SXNzdWUzMzMwNDAyOTA=","number":724,"title":"Security Exception int Unit testing","user":{"login":"DeusExMachina1993","id":13149437,"node_id":"MDQ6VXNlcjEzMTQ5NDM3","avatar_url":"https://avatars2.githubusercontent.com/u/13149437?v=4","gravatar_id":"","url":"https://api.github.com/users/DeusExMachina1993","html_url":"https://github.com/DeusExMachina1993","followers_url":"https://api.github.com/users/DeusExMachina1993/followers","following_url":"https://api.github.com/users/DeusExMachina1993/following{/other_user}","gists_url":"https://api.github.com/users/DeusExMachina1993/gists{/gist_id}","starred_url":"https://api.github.com/users/DeusExMachina1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeusExMachina1993/subscriptions","organizations_url":"https://api.github.com/users/DeusExMachina1993/orgs","repos_url":"https://api.github.com/users/DeusExMachina1993/repos","events_url":"https://api.github.com/users/DeusExMachina1993/events{/privacy}","received_events_url":"https://api.github.com/users/DeusExMachina1993/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-17T06:46:49Z","updated_at":"2018-06-17T07:56:20Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI tried different unit test environment like (xunit, nspec,...) and getting no success with them. \r\nwhen unit test code reaches system.Initialize() the Security Exception will be thrown...\r\nthe full message is:\r\n\r\n\"System.Security.SecurityException was unhandled by user code\r\n  HResult=-2146233078\r\n  Message=ECall methods must be packaged into a system module.\r\n  Source=Assembly-CSharp\r\n  StackTrace:\r\n       at TestSystem.Initialize()\r\n       at test.<>c.<when_making_test>b__0_0() in C:\\UnityProject\\ConsoleApplication1\\ConsoleApplication1\\test.cs:line 22\r\n       at NSpec.Domain.Example.Run(nspec nspec)\r\n       at NSpec.Domain.ContextUtils.RunAndHandleException(Action`1 action, nspec instance, Exception& targetException)\r\n  InnerException: \"\r\n\r\nany solution to fix this?\r\nbtw I'm working on windows.\r\n\r\nCheers\r\n"},"comment":{"url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/comments/397861717","html_url":"https://github.com/sschmid/Entitas-CSharp/issues/724#issuecomment-397861717","issue_url":"https://api.github.com/repos/sschmid/Entitas-CSharp/issues/724","id":397861717,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Nzg2MTcxNw==","user":{"login":"DeusExMachina1993","id":13149437,"node_id":"MDQ6VXNlcjEzMTQ5NDM3","avatar_url":"https://avatars2.githubusercontent.com/u/13149437?v=4","gravatar_id":"","url":"https://api.github.com/users/DeusExMachina1993","html_url":"https://github.com/DeusExMachina1993","followers_url":"https://api.github.com/users/DeusExMachina1993/followers","following_url":"https://api.github.com/users/DeusExMachina1993/following{/other_user}","gists_url":"https://api.github.com/users/DeusExMachina1993/gists{/gist_id}","starred_url":"https://api.github.com/users/DeusExMachina1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeusExMachina1993/subscriptions","organizations_url":"https://api.github.com/users/DeusExMachina1993/orgs","repos_url":"https://api.github.com/users/DeusExMachina1993/repos","events_url":"https://api.github.com/users/DeusExMachina1993/events{/privacy}","received_events_url":"https://api.github.com/users/DeusExMachina1993/received_events","type":"User","site_admin":false},"created_at":"2018-06-17T07:56:20Z","updated_at":"2018-06-17T07:56:20Z","author_association":"NONE","body":"thanks for the reply,\r\nunblocking Dll didn't help me.\r\nbase on this [link ](https://forum.unity.com/threads/security-exception-ecall-methods-must-be-packaged-into-a-system-module.98230/) seems specific unity functions only can call inside the editor.\r\nby adding simple try catch temporary ignore exception but I don't know why it's throwing from the system..\r\n"}}
{"actor":{"display_login":"DeusExMachina1993"}}