<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>winunit Issue Tracker Rss Feed</title><link>http://winunit.codeplex.com/WorkItem/List.aspx</link><description>winunit Issue Tracker Rss Description</description><item><title>Commented Issue: Feature Request: Create a Visual Studio Add-in [9733]</title><link>http://winunit.codeplex.com/workitem/9733</link><description>&amp;#60;p&amp;#62;I&amp;#38;&amp;#35;39&amp;#59;d like to request that a WinUnit Visual Studio Add-in be created so that unit testing can be integrated with the IDE similar to mstest unit test integration.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;For example, here is an add-in for google&amp;#38;&amp;#35;39&amp;#59;s test framework&amp;#58; http&amp;#58;&amp;#47;&amp;#47;googletestaddin.codeplex.com.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;It adds three buttons and three items to the code context menu&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;quot&amp;#59;Execute all test&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;quot&amp;#59;Execute the selected test&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;quot&amp;#59;Debug the selected test&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: ** Comment from web user: icnocop ** &lt;p&gt;@smibe, Thank you very much for the link! :D&lt;/p&gt;</description><author>icnocop</author><pubDate>Thu, 11 Oct 2012 01:04:49 GMT</pubDate><guid isPermaLink="false">Commented Issue: Feature Request: Create a Visual Studio Add-in [9733] 20121011010449A</guid></item><item><title>Commented Issue: Feature Request: Create a Visual Studio Add-in [9733]</title><link>http://winunit.codeplex.com/workitem/9733</link><description>&amp;#60;p&amp;#62;I&amp;#38;&amp;#35;39&amp;#59;d like to request that a WinUnit Visual Studio Add-in be created so that unit testing can be integrated with the IDE similar to mstest unit test integration.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;For example, here is an add-in for google&amp;#38;&amp;#35;39&amp;#59;s test framework&amp;#58; http&amp;#58;&amp;#47;&amp;#47;googletestaddin.codeplex.com.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;It adds three buttons and three items to the code context menu&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;quot&amp;#59;Execute all test&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;quot&amp;#59;Execute the selected test&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;quot&amp;#59;Debug the selected test&amp;#38;quot&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: ** Comment from web user: smibe ** &lt;p&gt;There is VisualAssert (http://www.visualassert.com/unit-testing-framework/) which can be used to run tests.&lt;/p&gt;</description><author>smibe</author><pubDate>Wed, 10 Oct 2012 14:32:40 GMT</pubDate><guid isPermaLink="false">Commented Issue: Feature Request: Create a Visual Studio Add-in [9733] 20121010023240P</guid></item><item><title>Created Issue: Feature Request: automatically display the datetime started and duration of unit tests [9790]</title><link>http://winunit.codeplex.com/workitem/9790</link><description>I&amp;#39;d like to request that WinUnit automatically display the datetime each unit test was started and its duration.  Also, the combined timespan for the duration of all the tests would also be nice.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;</description><author>icnocop</author><pubDate>Sat, 07 Jan 2012 19:44:16 GMT</pubDate><guid isPermaLink="false">Created Issue: Feature Request: automatically display the datetime started and duration of unit tests [9790] 20120107074416P</guid></item><item><title>Created Issue: Feature Request: Create a Visual Studio Add-in [9733]</title><link>http://winunit.codeplex.com/workitem/9733</link><description>I&amp;#39;d like to request that a WinUnit Visual Studio Add-in be created so that unit testing can be integrated with the IDE similar to mstest unit test integration.&lt;br /&gt;&lt;br /&gt;For example, Here is an add-in for google&amp;#39;s test framework&amp;#58; http&amp;#58;&amp;#47;&amp;#47;googletestaddin.codeplex.com.&lt;br /&gt;&lt;br /&gt;It adds three buttons and three items to the code context menu&amp;#58;&lt;br /&gt;&amp;#34;Execute all test&amp;#34;&lt;br /&gt;&amp;#34;Execute the selected test&amp;#34;&lt;br /&gt;&amp;#34;Debug the selected test&amp;#34;&lt;br /&gt;</description><author>icnocop</author><pubDate>Tue, 20 Dec 2011 01:42:53 GMT</pubDate><guid isPermaLink="false">Created Issue: Feature Request: Create a Visual Studio Add-in [9733] 20111220014253A</guid></item><item><title>Created Issue: Feature Request: return a non-zero exit code if LoadLibraryW fails and\or if no tests were run [8805]</title><link>http://winunit.codeplex.com/workitem/8805</link><description>Hi.&lt;br /&gt;&lt;br /&gt;Thank you for WinUnit 1.2.0909.1.&lt;br /&gt;&lt;br /&gt;I would like to request that WinUnit.exe return a non-zero exit code if LoadLibraryW fails andor&amp;#92; no tests were run to indicate an error&amp;#92;failure.&lt;br /&gt;&lt;br /&gt;For example, if I create a dll with an invalid manifest file and pass it to WinUnit.exe, i get the following output&amp;#58;&lt;br /&gt;&lt;br /&gt;WinUnit.exe -n MyCppTests.dll&lt;br /&gt;Processing &amp;#91;MyCppTests.dll&amp;#93;...&lt;br /&gt;&amp;#91;WinUnit&amp;#93; WinUnitLib&amp;#58;&amp;#58;TestModule&amp;#58;&amp;#58;GetModule&amp;#58; LoadLibraryW failed on C&amp;#58;&amp;#92;MyCppTests&amp;#92;MyCppTests.dll. &lt;br /&gt;&amp;#91;MyCppTests.dll&amp;#93; No tests were run.&lt;br /&gt;&lt;br /&gt;No tests were found.&lt;br /&gt;&lt;br /&gt;However, WinUnit.exe exits with a 0 return code, which is not expected.  I expected it to be non-zero to indicate an error&amp;#92;failure.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;</description><author>icnocop</author><pubDate>Fri, 17 Jun 2011 02:07:33 GMT</pubDate><guid isPermaLink="false">Created Issue: Feature Request: return a non-zero exit code if LoadLibraryW fails and\or if no tests were run [8805] 20110617020733A</guid></item><item><title>Commented Feature: Provide a project template to support CRT debugging features [4220]</title><link>http://winunit.codeplex.com/workitem/4220</link><description>There have been suggested to support the Debug CRT for detecting memory leaks.  Basically it requires two modifications the the test dll project.&lt;br /&gt; &lt;br /&gt; First, add the following lines to the test dll&amp;#39;s stdafx.h file&amp;#58;&lt;br /&gt;&amp;#35;define _CRTDBG_MAP_ALLOC&lt;br /&gt;&amp;#35;include &amp;#60;crtdbg.h&amp;#62;&lt;br /&gt; &lt;br /&gt;And second, insert the following as the first line in the test dll&amp;#39;s main .cpp dll file&amp;#58;&lt;br /&gt; _CrtSetDbgFlag&amp;#40; _CRTDBG_ALLOC_MEM_DF &amp;#124; _CRTDBG_LEAK_CHECK_DF&amp;#41;&amp;#59;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;e.g., &lt;br /&gt; &lt;br /&gt;int _tmain&amp;#40;int argc, TCHAR&amp;#42; argv&amp;#91;&amp;#93;, TCHAR&amp;#42; envp&amp;#91;&amp;#93;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt; _CrtSetDbgFlag&amp;#40; _CRTDBG_ALLOC_MEM_DF &amp;#124; _CRTDBG_LEAK_CHECK_DF&amp;#41;&amp;#59;&lt;br /&gt; int nRetCode &amp;#61; 0&amp;#59;&lt;br /&gt; &lt;br /&gt;.&lt;br /&gt;Comments: ** Comment from web user: icnocop ** &lt;p&gt;_tmain is an entry point for an application, not a dll.&lt;/p&gt;&lt;p&gt;I followed the steps here&amp;#58;&lt;br /&gt;Finding Memory Leaks Using the CRT Library&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;en-us&amp;#47;library&amp;#47;x98tx3cf.aspx&lt;/p&gt;&lt;p&gt;I called &amp;#34;_CrtSetDbgFlag &amp;#40; _CRTDBG_ALLOC_MEM_DF &amp;#124; _CRTDBG_LEAK_CHECK_DF &amp;#41;&amp;#59;&amp;#34; within BEGIN_TEST&amp;#40;&amp;#41;&amp;#123; ... &amp;#125;END_TEST but could not get the file and the line number where the leaked memory is first allocated.&lt;/p&gt;&lt;p&gt;Any ideas&amp;#63;&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;</description><author>icnocop</author><pubDate>Thu, 31 Mar 2011 03:08:57 GMT</pubDate><guid isPermaLink="false">Commented Feature: Provide a project template to support CRT debugging features [4220] 20110331030857A</guid></item><item><title>Created Issue: WIN_ASSERT_NOT_THROWS  macro [6615]</title><link>http://winunit.codeplex.com/workitem/6615</link><description>Is it possible add WIN_ASSERT_NOT_THROWS  macro&amp;#63; &lt;br /&gt;Some times it is usefull&lt;br /&gt;</description><author>magnetall</author><pubDate>Mon, 28 Jun 2010 08:10:27 GMT</pubDate><guid isPermaLink="false">Created Issue: WIN_ASSERT_NOT_THROWS  macro [6615] 20100628081027A</guid></item><item><title>Created Issue: Error loading a custom logger with absolute path [5711]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=5711</link><description>It is not possible to load a custom logger with an external path for example&amp;#58;&lt;br /&gt;&lt;br /&gt;WinUint.exe -l c&amp;#58;&amp;#92;customlogger.dll&amp;#58;out.txt sometest.dll&lt;br /&gt;&lt;br /&gt;The problem is the handling of the &amp;#39;&amp;#58;&amp;#39; in the path in ExternalLogger.cpp line 62&amp;#58;&lt;br /&gt;&lt;br /&gt;    const wchar_t&amp;#42; delimiterPosition &amp;#61; wcschr&amp;#40;reference, L&amp;#39;&amp;#58;&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;This line splits of only &amp;#39;c&amp;#39; but not the whole path.&lt;br /&gt;</description><author>JohannesU</author><pubDate>Thu, 08 Apr 2010 08:41:35 GMT</pubDate><guid isPermaLink="false">Created Issue: Error loading a custom logger with absolute path [5711] 20100408084135A</guid></item><item><title>Closed Issue: WinUnit.chm empty in WinUnit-1.2.0909.1 [5318]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=5318</link><description>The unzipped archive contains Documentation&amp;#92;WinUnit.chm.  All pages show error message &lt;br /&gt;&lt;br /&gt;&amp;#34;Navigation to the webpage was canceled &lt;br /&gt;   &lt;br /&gt;   What you can try&amp;#58; &lt;br /&gt;     Retype the address. &amp;#34;&lt;br /&gt;Comments: &lt;p&gt;I believe this is issue can be resolved by unblocking the CHM.&lt;/p&gt;</description><author>mkblees</author><pubDate>Fri, 05 Feb 2010 00:42:53 GMT</pubDate><guid isPermaLink="false">Closed Issue: WinUnit.chm empty in WinUnit-1.2.0909.1 [5318] 20100205124253A</guid></item><item><title>Commented Issue: WinUnit.chm empty in WinUnit-1.2.0909.1 [5318]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=5318</link><description>The unzipped archive contains Documentation&amp;#92;WinUnit.chm.  All pages show error message &lt;br /&gt;&lt;br /&gt;&amp;#34;Navigation to the webpage was canceled &lt;br /&gt;   &lt;br /&gt;   What you can try&amp;#58; &lt;br /&gt;     Retype the address. &amp;#34;&lt;br /&gt;Comments: ** Comment from web user: mkblees ** &lt;p&gt;Hi Paul, &lt;br /&gt;Try right-clicking on the CHM file in Windows Explorer and select Properties.  You should see a button that says &amp;#34;Unblock&amp;#34;.  If you click that you should be able to see the content.  Let us know if you have further problems.&lt;br /&gt;Maria&lt;/p&gt;</description><author>mkblees</author><pubDate>Fri, 05 Feb 2010 00:41:59 GMT</pubDate><guid isPermaLink="false">Commented Issue: WinUnit.chm empty in WinUnit-1.2.0909.1 [5318] 20100205124159A</guid></item><item><title>Created Issue: WinUnit.chm empty in WinUnit-1.2.0909.1 [5318]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=5318</link><description>The unzipped archive contains Documentation&amp;#92;WinUnit.chm.  All pages show error message &lt;br /&gt;&lt;br /&gt;&amp;#34;Navigation to the webpage was canceled &lt;br /&gt;   &lt;br /&gt;   What you can try&amp;#58; &lt;br /&gt;     Retype the address. &amp;#34;&lt;br /&gt;</description><author>PaulS609</author><pubDate>Tue, 02 Feb 2010 08:24:20 GMT</pubDate><guid isPermaLink="false">Created Issue: WinUnit.chm empty in WinUnit-1.2.0909.1 [5318] 20100202082420A</guid></item><item><title>Closed Issue: Problem when using MFC objects within the Test DLL project [4221]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=4221</link><description>It seems to be an &amp;#35;include hell order, which does not allow to compile a test project that consumes MFC classes from another project, whether it is linked to MFC dynamically or statically. There is a problem with &amp;#35;include &amp;#60;windows.h&amp;#62;, it needs further research.&lt;br /&gt;Comments: &lt;p&gt;This issue rises if you create your WinUnit project using an MFC empty DLL with precompiled headers. If WinUnit projects follow the project template described on the homepage the include hell problem goes away. So always create WinUnit projects starting from a C&amp;#43;&amp;#43; empty project.&lt;/p&gt;</description><author>Jhualpa</author><pubDate>Mon, 19 Oct 2009 04:31:11 GMT</pubDate><guid isPermaLink="false">Closed Issue: Problem when using MFC objects within the Test DLL project [4221] 20091019043111A</guid></item><item><title>Commented Issue: Problem when using MFC objects within the Test DLL project [4221]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=4221</link><description>It seems to be an &amp;#35;include hell order, which does not allow to compile a test project that consumes MFC classes from another project, whether it is linked to MFC dynamically or statically. There is a problem with &amp;#35;include &amp;#60;windows.h&amp;#62;, it needs further research.&lt;br /&gt;Comments: ** Comment from web user: Jhualpa ** &lt;p&gt;This issue rises if you create your WinUnit project using an MFC empty DLL with precompiled headers. If WinUnit projects follow the project template described on the homepage the include hell problem goes away. So always create WinUnit projects starting from a C&amp;#43;&amp;#43; empty project.&lt;/p&gt;</description><author>Jhualpa</author><pubDate>Mon, 19 Oct 2009 04:30:25 GMT</pubDate><guid isPermaLink="false">Commented Issue: Problem when using MFC objects within the Test DLL project [4221] 20091019043025A</guid></item><item><title>Commented Issue: WIN_ASSERT_TRUE only expects strings [4432]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=4432</link><description>This macro only expects strings. However other unit testing frameworks have this macro for numeric values. Currently if I pass in numeric values to this I get build errors. I want to compile at warning level 4, and this macro is getting in the way of that. &lt;br /&gt;&lt;br /&gt;So for instance, I want to be able to do this&amp;#58;&lt;br /&gt;&lt;br /&gt;WIN_ASSERT_EQUAL&amp;#40; 1, foo-&amp;#62;GetNum&amp;#40;&amp;#41; &amp;#41;&amp;#59;&lt;br /&gt;Comments: ** Comment from web user: Jhualpa ** &lt;p&gt;Chis, your issue seems confusing. WIN_ASSERT_TRUE only expects a condition that evaluates to true or false, and WIN_ASSERT_EQUAL accepts both numeric values and strings as well. Try this sample tests I have developed, I did compiled them with warning level 4 and no issues.&lt;/p&gt;&lt;p&gt; &amp;#35;include &amp;#34;WinUnit.h&amp;#34;&lt;br /&gt;  &amp;#35;include &amp;#34;string.h&amp;#34;&lt;/p&gt;&lt;p&gt;  BEGIN_TEST&amp;#40;WIN_ASSERT_TRUE_With_Numbers&amp;#41;&lt;br /&gt;  &amp;#123;&lt;br /&gt;&amp;#9;WIN_ASSERT_TRUE&amp;#40;4 &amp;#61;&amp;#61; 4&amp;#41;&amp;#59;&lt;br /&gt;  &amp;#125;&lt;br /&gt;  END_TEST&lt;/p&gt;&lt;p&gt;  BEGIN_TEST&amp;#40;WIN_ASSERT_TRUE_With_Strings&amp;#41;&lt;br /&gt;  &amp;#123;&lt;br /&gt;&amp;#9;WIN_ASSERT_TRUE&amp;#40;strcmp&amp;#40;&amp;#34;4&amp;#34;,&amp;#34;4&amp;#34;&amp;#41;&amp;#61;&amp;#61;0&amp;#41;&amp;#59;&lt;br /&gt;  &amp;#125;&lt;br /&gt;  END_TEST&lt;/p&gt;&lt;p&gt;  BEGIN_TEST&amp;#40;WIN_ASSERT_EQUAL_With_Numbers&amp;#41;&lt;br /&gt;  &amp;#123;&lt;br /&gt;&amp;#9;WIN_ASSERT_EQUAL&amp;#40;4, 4&amp;#41;&amp;#59;&lt;br /&gt;  &amp;#125;&lt;br /&gt;  END_TEST&lt;/p&gt;&lt;p&gt;  BEGIN_TEST&amp;#40;WIN_ASSERT_EQUAL_With_Strings&amp;#41;&lt;br /&gt;  &amp;#123;&lt;br /&gt;&amp;#9;WIN_ASSERT_EQUAL&amp;#40;&amp;#34;4&amp;#34;,&amp;#34;4&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;  &amp;#125;&lt;br /&gt;  END_TEST&lt;/p&gt;</description><author>Jhualpa</author><pubDate>Mon, 19 Oct 2009 04:24:53 GMT</pubDate><guid isPermaLink="false">Commented Issue: WIN_ASSERT_TRUE only expects strings [4432] 20091019042453A</guid></item><item><title>Created Issue: WIN_ASSERT_TRUE only expects strings [4432]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=4432</link><description>This macro only expects strings. However other unit testing frameworks have this macro for numeric values. Currently if I pass in numeric values to this I get build errors. I want to compile at warning level 4, and this macro is getting in the way of that. &lt;br /&gt;&lt;br /&gt;So for instance, I want to be able to do this&amp;#58;&lt;br /&gt;&lt;br /&gt;WIN_ASSERT_EQUAL&amp;#40; 1, foo-&amp;#62;GetNum&amp;#40;&amp;#41; &amp;#41;&amp;#59;&lt;br /&gt;</description><author>chrisJohnson</author><pubDate>Sat, 10 Oct 2009 07:04:37 GMT</pubDate><guid isPermaLink="false">Created Issue: WIN_ASSERT_TRUE only expects strings [4432] 20091010070437A</guid></item><item><title>Closed Issue: Missing .SLN file on the \Release\Examples Directory [4219]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=4219</link><description>There is not .sln file that links the samples published on the  &amp;#92;Release&amp;#92;Examples directory. Besides WinUnit does not get executed on the TestSampleLib project.&lt;br /&gt;Comments: &lt;p&gt;Rearranged directories, adding a new VS2008 directory under Release.  Included a copy of this file &amp;#40;branched from Development&amp;#92;Current&amp;#41;.&lt;/p&gt;</description><author>mkblees</author><pubDate>Thu, 10 Sep 2009 07:59:46 GMT</pubDate><guid isPermaLink="false">Closed Issue: Missing .SLN file on the \Release\Examples Directory [4219] 20090910075946A</guid></item><item><title>Commented Issue: Missing .SLN file on the \Release\Examples Directory [4219]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=4219</link><description>There is not .sln file that links the samples published on the  &amp;#92;Release&amp;#92;Examples directory. Besides WinUnit does not get executed on the TestSampleLib project.&lt;br /&gt;Comments: Associated with changeset 29390.</description><author>mkblees</author><pubDate>Thu, 10 Sep 2009 05:57:45 GMT</pubDate><guid isPermaLink="false">Commented Issue: Missing .SLN file on the \Release\Examples Directory [4219] 20090910055745A</guid></item><item><title>Reopened Issue: Missing .SLN file on the \Release\Examples Directory [4219]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=4219</link><description>There is not .sln file that links the samples published on the  &amp;#92;Release&amp;#92;Examples directory. Besides WinUnit does not get executed on the TestSampleLib project.&lt;br /&gt;Comments: ** Comment from web user: mkblees ** &lt;p&gt;Reopening so I can associate some checkins with it &amp;#40;recreating Examples.sln in Development directory and entire Release branch&amp;#41;.&lt;/p&gt;</description><author>mkblees</author><pubDate>Thu, 10 Sep 2009 05:55:55 GMT</pubDate><guid isPermaLink="false">Reopened Issue: Missing .SLN file on the \Release\Examples Directory [4219] 20090910055555A</guid></item><item><title>Closed Issue: Issue in macros if a string contains "%" [4210]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=4210</link><description>From Konstantin Izmailov, Feb. 14, 2008&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#34;&lt;br /&gt;I&amp;#8217;m using WinUnit and found a bug. Here is part of my test code&amp;#58;&lt;br /&gt;      WIN_ASSERT_TRUE&amp;#40;0 &amp;#61;&amp;#61; wcscmp&amp;#40;pwszExpectedResult, pwszActualResult&amp;#41;, _T&amp;#40;&amp;#34;Actual result is differenet from expected&amp;#92;n&amp;#92;tsource&amp;#58;   &amp;#37;s&amp;#92;n&amp;#92;tactual&amp;#58;   &amp;#37;s&amp;#92;n&amp;#92;texpected&amp;#58; &amp;#37;s&amp;#34;&amp;#41;, pwszSrcText, pwszActualResult, pwszExpectedResult&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Problem occurs when any of the test string are having &amp;#8216;&amp;#37;&amp;#8217; sign, for example, &lt;br /&gt;                pwszSrcText &amp;#61; L&amp;#34;select &amp;#42; from accountid id, account a from account where accountid&amp;#61;&amp;#39;DEMO00000001&amp;#39; or account like &amp;#39;Ab&amp;#37;&amp;#39;&amp;#34;&lt;br /&gt;&lt;br /&gt;Underlying _snwprintf_s routine throws assertion&amp;#58;  &amp;#8220;Incorrect format specifier&amp;#8221;.&lt;br /&gt;&lt;br /&gt;Fix can be made in WinUnit.h at Line 115 as shown below&amp;#58;&lt;br /&gt;            EMIT_ERROR&amp;#40;_T&amp;#40;&amp;#34;&amp;#37;s&amp;#34;&amp;#41;, e.Message&amp;#40;&amp;#41;&amp;#41;&amp;#59;                                &amp;#92;&lt;br /&gt;&amp;#34;&lt;br /&gt;Comments: Resolved with changeset 29388.</description><author>mkblees</author><pubDate>Thu, 10 Sep 2009 05:32:41 GMT</pubDate><guid isPermaLink="false">Closed Issue: Issue in macros if a string contains "%" [4210] 20090910053241A</guid></item><item><title>Closed Issue: Some ASSERT macros use const T where they should use const T&amp; [4205]</title><link>http://winunit.codeplex.com/WorkItem/View.aspx?WorkItemId=4205</link><description>From David Connet, Jan. 14, 2008&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#34;&lt;br /&gt;I just ran into some issues using WIN_ASSERT_EQUAL - since the template&lt;br /&gt;is defined as &amp;#39;const T ...&amp;#39;, this actually causes a copy constructor to&lt;br /&gt;be invoked. I discovered this when using it to compare some boost smart&lt;br /&gt;points on classes where all the ctors are protected. I can work around&lt;br /&gt;it be doing &amp;#34;WIN_ASSERT_TRUE&amp;#40;&amp;#42;obj1 &amp;#61;&amp;#61; &amp;#42;obj2&amp;#41;&amp;#59;&amp;#34; &lt;br /&gt;&amp;#34;&lt;br /&gt;Comments: Resolved with changeset 29387.</description><author>mkblees</author><pubDate>Thu, 10 Sep 2009 05:03:52 GMT</pubDate><guid isPermaLink="false">Closed Issue: Some ASSERT macros use const T where they should use const T&amp; [4205] 20090910050352A</guid></item></channel></rss>