{"id":3663,"date":"2010-12-21T09:00:00","date_gmt":"2010-12-21T09:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vcblog\/2010\/12\/21\/unit-testing-native-c-with-visual-studio\/"},"modified":"2021-10-06T13:58:48","modified_gmt":"2021-10-06T13:58:48","slug":"unit-testing-native-c-with-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/unit-testing-native-c-with-visual-studio\/","title":{"rendered":"Unit-Testing Native C++ with Visual Studio"},"content":{"rendered":"<p><a href=\"http:\/\/blogs.msdn.com\/jsocha\/\"><img decoding=\"async\" height=\"92\" width=\"70\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2010\/12\/4657.image_475503A7.png\" align=\"left\" alt=\"John Socha-Leialoha\" border=\"0\" title=\"John Socha-Leialoha\" style=\"border-bottom: 0px;border-left: 0px;margin: 0px 5px 0px 0px;padding-left: 0px;padding-right: 0px;float: left;border-top: 0px;border-right: 0px;padding-top: 0px\" \/><\/a><\/p>\n<p>Hi there! I&rsquo;m <a href=\"http:\/\/blogs.msdn.com\/jsocha\/\">John Socha-Leialoha<\/a> and I&rsquo;m a big fan of TDD. When I asked around about writing C++ tests, I was told there isn&rsquo;t any support for C++ unit tests in Visual C++. Not true. Check <a href=\"http:\/\/blogs.msdn.com\/jsocha\/archive\/2010\/11\/19\/writing-unit-tests-in-visual-studio-for-native-c.aspx\">this blog post<\/a>&nbsp;where I&nbsp;tell you&nbsp;what&rsquo;s required in order to write unit test for native C++ code using Visual Studio.<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/jsocha\/archive\/2010\/11\/19\/writing-unit-tests-in-visual-studio-for-native-c.aspx\">[Go to John&rsquo;s full article&hellip;]<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi there! I&rsquo;m John Socha-Leialoha and I&rsquo;m a big fan of TDD. When I asked around about writing C++ tests, I was told there isn&rsquo;t any support for C++ unit tests in Visual C++. Not true. Check this blog post&nbsp;where I&nbsp;tell you&nbsp;what&rsquo;s required in order to write unit test for native C++ code using Visual [&hellip;]<\/p>\n","protected":false},"author":289,"featured_media":35994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[11,41],"class_list":["post-3663","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus","tag-test","tag-vs2010"],"acf":[],"blog_post_summary":"<p>Hi there! I&rsquo;m John Socha-Leialoha and I&rsquo;m a big fan of TDD. When I asked around about writing C++ tests, I was told there isn&rsquo;t any support for C++ unit tests in Visual C++. Not true. Check this blog post&nbsp;where I&nbsp;tell you&nbsp;what&rsquo;s required in order to write unit test for native C++ code using Visual [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/3663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/289"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=3663"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/3663\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35994"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=3663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=3663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=3663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}