{"action":"closed","issue":{"url":"https://api.github.com/repos/nunit/nunit/issues/1049","labels_url":"https://api.github.com/repos/nunit/nunit/issues/1049/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/1049/comments","events_url":"https://api.github.com/repos/nunit/nunit/issues/1049/events","html_url":"https://github.com/nunit/nunit/issues/1049","id":118043699,"number":1049,"title":"Cannot select Generic tests from command line","user":{"login":"x2764tech","id":2870080,"avatar_url":"https://avatars.githubusercontent.com/u/2870080?v=3","gravatar_id":"","url":"https://api.github.com/users/x2764tech","html_url":"https://github.com/x2764tech","followers_url":"https://api.github.com/users/x2764tech/followers","following_url":"https://api.github.com/users/x2764tech/following{/other_user}","gists_url":"https://api.github.com/users/x2764tech/gists{/gist_id}","starred_url":"https://api.github.com/users/x2764tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x2764tech/subscriptions","organizations_url":"https://api.github.com/users/x2764tech/orgs","repos_url":"https://api.github.com/users/x2764tech/repos","events_url":"https://api.github.com/users/x2764tech/events{/privacy}","received_events_url":"https://api.github.com/users/x2764tech/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nunit/nunit/labels/is:bug","name":"is:bug","color":"fc2929"},{"url":"https://api.github.com/repos/nunit/nunit/labels/pri:high","name":"pri:high","color":"eb6420"},{"url":"https://api.github.com/repos/nunit/nunit/labels/status:merge","name":"status:merge","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"CharliePoole","id":2678661,"avatar_url":"https://avatars.githubusercontent.com/u/2678661?v=3","gravatar_id":"","url":"https://api.github.com/users/CharliePoole","html_url":"https://github.com/CharliePoole","followers_url":"https://api.github.com/users/CharliePoole/followers","following_url":"https://api.github.com/users/CharliePoole/following{/other_user}","gists_url":"https://api.github.com/users/CharliePoole/gists{/gist_id}","starred_url":"https://api.github.com/users/CharliePoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharliePoole/subscriptions","organizations_url":"https://api.github.com/users/CharliePoole/orgs","repos_url":"https://api.github.com/users/CharliePoole/repos","events_url":"https://api.github.com/users/CharliePoole/events{/privacy}","received_events_url":"https://api.github.com/users/CharliePoole/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nunit/nunit/milestones/19","html_url":"https://github.com/nunit/nunit/milestones/3.0.1","labels_url":"https://api.github.com/repos/nunit/nunit/milestones/19/labels","id":1425612,"number":19,"title":"3.0.1","description":"This is a bug-fix-only release, following the initial release of 3.0.","creator":{"login":"rprouse","id":493828,"avatar_url":"https://avatars.githubusercontent.com/u/493828?v=3","gravatar_id":"","url":"https://api.github.com/users/rprouse","html_url":"https://github.com/rprouse","followers_url":"https://api.github.com/users/rprouse/followers","following_url":"https://api.github.com/users/rprouse/following{/other_user}","gists_url":"https://api.github.com/users/rprouse/gists{/gist_id}","starred_url":"https://api.github.com/users/rprouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rprouse/subscriptions","organizations_url":"https://api.github.com/users/rprouse/orgs","repos_url":"https://api.github.com/users/rprouse/repos","events_url":"https://api.github.com/users/rprouse/events{/privacy}","received_events_url":"https://api.github.com/users/rprouse/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":15,"state":"open","created_at":"2015-11-23T17:35:42Z","updated_at":"2015-11-28T22:14:47Z","due_on":"2015-11-30T08:00:00Z","closed_at":null},"comments":5,"created_at":"2015-11-20T13:34:40Z","updated_at":"2015-11-28T22:14:47Z","closed_at":"2015-11-28T22:14:47Z","body":"When running `NUnit Console Runner 3.0.5797` with a test selection that includes a generic type argument, I get and error an no tests are run:\r\n\r\n    >nunit3-console.exe  WebTests.dll --where \"test == WebTests._3DSecure.Test_3DSecure<BrowserStackDriverBuilder>.Test_MC_CardholderEnrolled_AuthenticationNotAbleToComplete\"\r\n    NUnit Console Runner 3.0.5797\r\n    Copyright (C) 2015 Charlie Poole\r\n\r\n    Runtime Environment\r\n       OS Version: Microsoft Windows NT 6.3.9600.0\r\n      CLR Version: 4.0.30319.42000\r\n\r\n    Test Files\r\n        WebTests.dll\r\n\r\n    Test Filters\r\n        Where: test == WebTests._3DSecure.Test_3DSecure<BrowserStackDriverBuilder>.Test_MC_CardholderEnrolled_AuthenticationNotAbleToComplete\r\n\r\n    System.Xml.XmlException: The 'BrowserStackDriverBuilder' start tag on line 1 position 48 does not match the end tag of 'test'. Line 1, position 135.\r\n       at System.Xml.XmlTextReaderImpl.Throw(Exception e)\r\n       at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)\r\n       at System.Xml.XmlTextReaderImpl.ParseEndElement()\r\n       at System.Xml.XmlTextReaderImpl.ParseElementContent()\r\n       at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)\r\n       at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)\r\n       at System.Xml.XmlDocument.Load(XmlReader reader)\r\n       at System.Xml.XmlDocument.LoadXml(String xml)\r\n       at NUnit.Engine.Internal.XmlHelper.CreateXmlNode(String xml)\r\n       at NUnit.Engine.Runners.MasterTestRunner.InsertFilterElement(XmlNode resultNode, TestFilter filter)\r\n       at NUnit.Engine.Runners.MasterTestRunner.RunTests(ITestEventListener listener, TestFilter filter)\r\n       at NUnit.Engine.Runners.MasterTestRunner.NUnit.Engine.ITestRunner.Run(ITestEventListener listener, TestFilter filter)\r\n       at NUnit.ConsoleRunner.ConsoleRunner.RunTests(TestPackage package, TestFilter filter)\r\n       at NUnit.ConsoleRunner.Program.Main(String[] args)\r\n\r\nIf I try xml/html escaping the test name, I get:\r\n```\r\nNUnit.Engine.TestSelectionParserException: Unexpected token '&' at position 0 in selection expression.\r\n   at NUnit.Engine.TestSelectionParser.Expect(Token[] valid)\r\n   at NUnit.Engine.TestSelectionParser.ParseFilterElement()\r\n   at NUnit.Engine.TestSelectionParser.ParseFilterTerm()\r\n   at NUnit.Engine.TestSelectionParser.ParseFilterExpression()\r\n   at NUnit.Engine.TestFilterBuilder.GetFilter()\r\n   at NUnit.ConsoleRunner.ConsoleRunner.Execute()\r\n   at NUnit.ConsoleRunner.Program.Main(String[] args)\r\n```\r\nSpecifying the name name of the test using the deprecated `--test` argument results in an error too:\r\n\r\n\tC:\\>nunit3-console.exe WebTests.dll --test \"WebTests._3DSecure.Test_3DSecure<BrowserStackDriverBuilder>.Test_MC_CardholderEnrolled_AuthenticationNotAbleToComplete\"\r\n\tNUnit Console Runner 3.0.5797\r\n\tCopyright (C) 2015 Charlie Poole\r\n\r\n\tRuntime Environment\r\n\t   OS Version: Microsoft Windows NT 6.3.9600.0\r\n\t  CLR Version: 4.0.30319.42000\r\n\r\n\tTest Files\r\n\t\tWebTests.dll\r\n\r\n\tTest Filters\r\n\t\tTest: WebTests._3DSecure.Test_3DSecure<BrowserStackDriverBuilder>.Test_MC_CardholderEnrolled_AuthenticationNotAbleTo\r\n\tComplete\r\n\r\n\tSystem.Xml.XmlException: The 'BrowserStackDriverBuilder' start tag on line 1 position 48 does not match the end tag of '\r\n\ttest'. Line 1, position 135.\r\n\t   at System.Xml.XmlTextReaderImpl.Throw(Exception e)\r\n\t   at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)\r\n\t   at System.Xml.XmlTextReaderImpl.ParseEndElement()\r\n\t   at System.Xml.XmlTextReaderImpl.ParseElementContent()\r\n\t   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)\r\n\t   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)\r\n\t   at System.Xml.XmlDocument.Load(XmlReader reader)\r\n\t   at System.Xml.XmlDocument.LoadXml(String xml)\r\n\t   at NUnit.Engine.Internal.XmlHelper.CreateXmlNode(String xml)\r\n\t   at NUnit.Engine.Runners.MasterTestRunner.InsertFilterElement(XmlNode resultNode, TestFilter filter)\r\n\t   at NUnit.Engine.Runners.MasterTestRunner.RunTests(ITestEventListener listener, TestFilter filter)\r\n\t   at NUnit.Engine.Runners.MasterTestRunner.NUnit.Engine.ITestRunner.Run(ITestEventListener listener, TestFilter filter)\r\n\t   at NUnit.ConsoleRunner.ConsoleRunner.RunTests(TestPackage package, TestFilter filter)\r\n\t   at NUnit.ConsoleRunner.Program.Main(String[] args)\r\n\r\nI can't find any test cases related to parsing generic type arguments, so I don't know if this is expected behaviour."}}