{"action":"created","issue":{"url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/36","labels_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/36/comments","events_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/36/events","html_url":"https://github.com/Knagis/CommonMark.NET/issues/36","id":64644830,"number":36,"title":"Change from MSUnit to NUnit/XUnit?","user":{"login":"yetanotherchris","id":54912,"avatar_url":"https://avatars.githubusercontent.com/u/54912?v=3","gravatar_id":"","url":"https://api.github.com/users/yetanotherchris","html_url":"https://github.com/yetanotherchris","followers_url":"https://api.github.com/users/yetanotherchris/followers","following_url":"https://api.github.com/users/yetanotherchris/following{/other_user}","gists_url":"https://api.github.com/users/yetanotherchris/gists{/gist_id}","starred_url":"https://api.github.com/users/yetanotherchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yetanotherchris/subscriptions","organizations_url":"https://api.github.com/users/yetanotherchris/orgs","repos_url":"https://api.github.com/users/yetanotherchris/repos","events_url":"https://api.github.com/users/yetanotherchris/events{/privacy}","received_events_url":"https://api.github.com/users/yetanotherchris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-26T22:09:20Z","updated_at":"2015-03-28T14:31:40Z","closed_at":null,"body":"Are there any plans to switching the unit testing framework from MSTest to NUnit or XUnit? The latter work a bit better with CI servers (I'm thinking of Travis), for example I managed to get a build passing on Travis with a few bits of search and replace:\r\n\r\n- https://travis-ci.org/yetanotherchris/CommonMark.NET/builds/56018212\r\n- https://github.com/yetanotherchris/CommonMark.NET/commits/master\r\n\r\nYou can get a free copy of Resharper if you have an OS project, if running the tests on your own machine inside Visual Studio is the issue."},"comment":{"url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/comments/87236006","html_url":"https://github.com/Knagis/CommonMark.NET/issues/36#issuecomment-87236006","issue_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/36","id":87236006,"user":{"login":"yetanotherchris","id":54912,"avatar_url":"https://avatars.githubusercontent.com/u/54912?v=3","gravatar_id":"","url":"https://api.github.com/users/yetanotherchris","html_url":"https://github.com/yetanotherchris","followers_url":"https://api.github.com/users/yetanotherchris/followers","following_url":"https://api.github.com/users/yetanotherchris/following{/other_user}","gists_url":"https://api.github.com/users/yetanotherchris/gists{/gist_id}","starred_url":"https://api.github.com/users/yetanotherchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yetanotherchris/subscriptions","organizations_url":"https://api.github.com/users/yetanotherchris/orgs","repos_url":"https://api.github.com/users/yetanotherchris/repos","events_url":"https://api.github.com/users/yetanotherchris/events{/privacy}","received_events_url":"https://api.github.com/users/yetanotherchris/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T14:31:40Z","updated_at":"2015-03-28T14:31:40Z","body":"I had a try at toggling between the two via reference conditionals in the project file,  and compilation symbols, but it's way too dirty and annoyingly `Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute` etc. are sealed classes:\r\n\r\n\t#if NUnit\r\n\tusing NUnit.Framework;\r\n\t#else\r\n\tusing Microsoft.VisualStudio.TestTools.UnitTesting;\r\n\t#endif\r\n\r\n\tnamespace CommonMark.Tests\r\n\t{\r\n\t#if NUnit\r\n\t\tpublic class TestClassAttribute : TestFixtureAttribute\r\n\t\t{\t\r\n\t\t}\r\n\r\n\t\tpublic class TestMethodAttribute : TestAttribute\r\n\t\t{\r\n\t\t}\r\n\r\n\t\tpublic class TestCategoryAttribute : CategoryAttribute\r\n\t\t{\r\n\t\t\tpublic TestCategoryAttribute(string name) : base(name.Replace(\"-\", \":\"))\r\n\t\t\t{\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tpublic class Assert : NUnit.Framework.Assert\r\n\t\t{\r\n\t\t}\r\n\t#else\r\n\t\tusing TestClassAttribute : Microsoft.VisualStudio.TestTools.UnitTestingTestClassAttribute\r\n\t\t{\r\n\t\t}\r\n\r\n\t\tpublic class TestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute\r\n\t\t{\r\n\t\t}\r\n\r\n\t\tpublic class TestCategoryAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestCategoryAttribute\r\n\t\t{\r\n\t\t}\r\n\r\n\t\tpublic class Assert : Microsoft.VisualStudio.TestTools.UnitTesting.Assert\r\n\t\t{\r\n\t\t}\r\n\t#endif\r\n\t}\r\n\r\nBoth XUnit and NUnit have runners that integrate into Visual Studio, they're just not as good as the Microsoft.TestTools or Resharper one. But as you've got a .KProject already, I think it's a bit weird to use MS Test as the project will never build outside of Windows like this, and XUnit is built into Visual Studio 2015.\r\n\r\nIt's not a big issue though, a \"nice to have\" :)"}}