<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>winunit Discussions Rss Feed</title><link>http://winunit.codeplex.com/Thread/List.aspx</link><description>winunit Discussions Rss Description</description><item><title>New Post: The new "Native Unit Test Project" in Visual Studio 11</title><link>http://winunit.codeplex.com/discussions/348074</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I noticed there is a new &amp;ldquo;Native Unit Test Project&amp;rdquo; in Visual Studio 11 Developer Preview\Beta&lt;/p&gt;
&lt;p&gt;Here is some preliminary documentation on msdn:&lt;/p&gt;
&lt;p&gt;Unit testing native code with Unit Test Explorer&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/hh270864%28v=vs.110%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/hh270864%28v=vs.110%29.aspx&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>icnocop</author><pubDate>Sat, 10 Mar 2012 05:42:29 GMT</pubDate><guid isPermaLink="false">New Post: The new "Native Unit Test Project" in Visual Studio 11 20120310054229A</guid></item><item><title>New Post: using WinUnit and registration free COM activation</title><link>http://winunit.codeplex.com/discussions/261696</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I asked the question on StackOverflow here:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank"&gt;http://stackoverflow.com/questions/6393865/registration-free-com-without-copying-the-dll-to-the-same-directory-as-the-execut&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>icnocop</author><pubDate>Fri, 01 Jul 2011 19:53:35 GMT</pubDate><guid isPermaLink="false">New Post: using WinUnit and registration free COM activation 20110701075335P</guid></item><item><title>New Post: using WinUnit and registration free COM activation</title><link>http://winunit.codeplex.com/discussions/261696</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I got this to work by following the guide here:&lt;/p&gt;
&lt;p&gt;http://www.mazecomputer.com/sxs/help/sxsapi3.htm&lt;/p&gt;
&lt;p&gt;And also example code from vvvsample here:&lt;/p&gt;
&lt;p&gt;http://msf.codeplex.com/&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is only one caveat: I have to copy the COM dll to the same directory as WinUnit.exe.&lt;/p&gt;
&lt;p&gt;I am currently passing the full path of the external manifest and the full path of the test directory to CActCtxHandle.Create() (ex. "C:\MyCppTests\Release\MyCppTests.dll.manifest" and "C:\MyCppTests\Release" respectively).&lt;/p&gt;
&lt;p&gt;The COM dll also resides in "C:\MyCppTests\Release" but WinUnit.exe resides in a different directory (ex. "C:\WinUnit").&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;&lt;/div&gt;</description><author>icnocop</author><pubDate>Fri, 17 Jun 2011 03:46:18 GMT</pubDate><guid isPermaLink="false">New Post: using WinUnit and registration free COM activation 20110617034618A</guid></item><item><title>New Post: using WinUnit and registration free COM activation</title><link>http://winunit.codeplex.com/discussions/261696</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I found another answer that indicates it is possible in one of two ways:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/1770463/how-to-do-registration-free-com-in-a-plug-in-architecture" target="_blank"&gt;http://stackoverflow.com/questions/1770463/how-to-do-registration-free-com-in-a-plug-in-architecture&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>icnocop</author><pubDate>Thu, 16 Jun 2011 22:58:38 GMT</pubDate><guid isPermaLink="false">New Post: using WinUnit and registration free COM activation 20110616105838P</guid></item><item><title>New Post: using WinUnit and registration free COM activation</title><link>http://winunit.codeplex.com/discussions/261696</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I found an answer that indicates this is not possible:&lt;/p&gt;
&lt;p&gt;http://stackoverflow.com/questions/4935536/nunit-test-with-fortran-dll&lt;/p&gt;&lt;/div&gt;</description><author>icnocop</author><pubDate>Thu, 16 Jun 2011 22:52:44 GMT</pubDate><guid isPermaLink="false">New Post: using WinUnit and registration free COM activation 20110616105244P</guid></item><item><title>New Post: using WinUnit and registration free COM activation</title><link>http://winunit.codeplex.com/discussions/261696</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I am trying to create a unit test that instantiates a COM object using registration free (reg-free) activation.&lt;/p&gt;
&lt;p&gt;Is this possible without modifying WinUnit.exe or creating WinUnit.exe.manifest for example?&lt;/p&gt;
&lt;p&gt;WinUnit &lt;span id="TitleLabel"&gt;1.2.0909.1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;/div&gt;</description><author>icnocop</author><pubDate>Thu, 16 Jun 2011 21:10:07 GMT</pubDate><guid isPermaLink="false">New Post: using WinUnit and registration free COM activation 20110616091007P</guid></item><item><title>New Post: Using winUnit for .c files</title><link>http://winunit.codeplex.com/discussions/259711</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I have been searching on how to use WinUnit for .c files.&lt;/p&gt;
&lt;p&gt;But, all the documentations that I came across were C&amp;#43;&amp;#43; files.&lt;/p&gt;
&lt;p&gt;Are there any documentations on how to use WinUnit for .c files?&lt;/p&gt;
&lt;p&gt;Are there specific Macros used for .c files?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;/div&gt;</description><author>kriscsc09</author><pubDate>Wed, 01 Jun 2011 02:54:31 GMT</pubDate><guid isPermaLink="false">New Post: Using winUnit for .c files 20110601025431A</guid></item><item><title>New Post: testing a MFC-Dll with com and serialisation</title><link>http://winunit.codeplex.com/discussions/250097</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Calling CoInitialize and AFX_MANAGE_STATE(AfxGetStaticModuleState()); is application specific.&lt;/p&gt;
&lt;p&gt;You can always create your own methods\macros that wrap around the winunit macros so that they call your application specific functions.&lt;/p&gt;&lt;/div&gt;</description><author>icnocop</author><pubDate>Thu, 31 Mar 2011 19:39:59 GMT</pubDate><guid isPermaLink="false">New Post: testing a MFC-Dll with com and serialisation 20110331073959P</guid></item><item><title>New Post: step by step</title><link>http://winunit.codeplex.com/discussions/236473</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;There is a link on the home page.&lt;/p&gt;
&lt;p&gt;Getting Started &amp;gt; "Create your first test project"&lt;/p&gt;
&lt;p&gt;http://winunit.codeplex.com/wikipage?title=Create%20your%20first%20test%20project&amp;amp;referringTitle=Home&lt;/p&gt;&lt;/div&gt;</description><author>icnocop</author><pubDate>Thu, 31 Mar 2011 19:37:50 GMT</pubDate><guid isPermaLink="false">New Post: step by step 20110331073750P</guid></item><item><title>New Post: testing a MFC-Dll with com and serialisation</title><link>http://winunit.codeplex.com/discussions/250097</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I'm testing winUnit since a couple of days and encountered the following &amp;quot;issue&amp;quot; which may be interesting to others as well:&lt;/p&gt;
&lt;p&gt;i want to test classes and methods from another dll. to do this i link the .lib into my winunit-testdll and include the needed header.&lt;/p&gt;
&lt;p&gt;well... things work until&lt;/p&gt;
&lt;p&gt;- the tested dll uses com-components. this fails until i add somewhere &amp;quot;::CoInitialize(0) ;&amp;quot; &amp;nbsp;pretty early in my test-dll (of yourse no winunit-issue but still important to know)&lt;/p&gt;
&lt;p&gt;- the tested dll also uses the mfc-serialisation meachanism. i wanted to test that and serialized an object from within the test-dll. every call to deserialisazion failed with an exception. my class could not get created dynamically. well, after some hacking,
 testing and googleing i found out that you have to:&lt;/p&gt;
&lt;p&gt;1. call &amp;quot;InitDllToTest&amp;quot; very early in the testing-dll. this is a call to some function in the tested dll which calls &amp;quot;&lt;span style="color:blue"&gt;new&lt;/span&gt; CDynLinkLibrary()&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. call &amp;quot;AFX_MANAGE_STATE(AfxGetStaticModuleState());&amp;quot; &amp;nbsp;in every testfunction as 1st statement bevor you do anything woth MFC-classes. after that (de-)serialisation works for me.&lt;/p&gt;
&lt;p&gt;please refer to &amp;nbsp;http://support.microsoft.com/kb/154126&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;so maybe it would be a good idea to add &amp;quot;AFX_MANAGE_STATE(AfxGetStaticModuleState());&amp;quot;-calls to the winunit-macros so it gets called automatically at every test?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;greetings&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>suriel666</author><pubDate>Thu, 17 Mar 2011 12:42:11 GMT</pubDate><guid isPermaLink="false">New Post: testing a MFC-Dll with com and serialisation 20110317124211P</guid></item><item><title>New Post: step by step</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=236473</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;can somebody explain the step by step for using the winunit. i have not done unit testing before.&lt;/p&gt;
&lt;/div&gt;</description><author>billy17</author><pubDate>Tue, 30 Nov 2010 07:31:02 GMT</pubDate><guid isPermaLink="false">New Post: step by step 20101130073102A</guid></item><item><title>New Post: How do I use the VS macros that come with WinUnit?</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=226898</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I&amp;rsquo;ve created a modified version of the RunningTests macros that fixes the problem. It&amp;rsquo;s fairly crude as I&amp;rsquo;m no VS Macro expert, but if anyone else would like to try it, here it is:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://gist.github.com/576164"&gt;http://gist.github.com/576164&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>diskrete</author><pubDate>Sun, 12 Sep 2010 14:58:54 GMT</pubDate><guid isPermaLink="false">New Post: How do I use the VS macros that come with WinUnit? 20100912025854P</guid></item><item><title>New Post: How do I use the VS macros that come with WinUnit?</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=226898</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I am trying to use the Visual Studio macros that come with WinUnit.&lt;/p&gt;
&lt;p&gt;But when I run (for example) &lt;code&gt;RunTestAtCursor&lt;/code&gt; it tells me:&lt;/p&gt;
&lt;blockquote&gt;Current function is not a WinUnit test (BEGIN_TEST).&lt;/blockquote&gt;
&lt;p&gt;Digging into the macros, I found that it checks whether the function name begins with &lt;code&gt;TEST_&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Unfortunately, the &lt;code&gt;GetCurrentFunctionName&lt;/code&gt; function in the VS macro always returns &lt;code&gt;BEGIN_TEST&lt;/code&gt; and never the real function name (which will be something like &lt;code&gt;TEST_MyFirstTest&lt;/code&gt;). So it won&amp;rsquo;t run any of my tests. :-(&lt;/p&gt;
&lt;p&gt;I am using Visual Studio 2010.&lt;/p&gt;&lt;/div&gt;</description><author>diskrete</author><pubDate>Sat, 11 Sep 2010 23:01:58 GMT</pubDate><guid isPermaLink="false">New Post: How do I use the VS macros that come with WinUnit? 20100911110158P</guid></item><item><title>New Post: Test order</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=217534</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;How to define test run order ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>magnetall</author><pubDate>Mon, 28 Jun 2010 07:49:39 GMT</pubDate><guid isPermaLink="false">New Post: Test order 20100628074939A</guid></item><item><title>New Post: Test for classes in an .exe</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=77298</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;NielsC,&lt;/p&gt;
&lt;p&gt;I want to make sure that I understand your issue. Suppose that you name only the path, how would you expect that the compiler and WinUnit know to which object file to link to ?&lt;/p&gt;
&lt;p&gt;By explicity telling the object file to link to, you are adding a reference to that object file into your WinUnit DLL, so it is needed in order to determine the dependencies. But if you have 5 executables why do you explicity link to their classess instead of linking to the .lib that each .exe generates. In that way you will have to name as much as 5 .lib names.&lt;/p&gt;
&lt;p&gt;Does this make sense ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>jhualpa</author><pubDate>Wed, 20 Jan 2010 14:40:10 GMT</pubDate><guid isPermaLink="false">New Post: Test for classes in an .exe 20100120024010P</guid></item><item><title>New Post: WinUnit and VS2005</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=81189</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi again! Tnx for your quick reply.&lt;/p&gt;
&lt;p&gt;I tried one more time from the beginning and now it works correctly.&lt;/p&gt;
&lt;p&gt;Really, weird thing happened before.&lt;/p&gt;
&lt;p&gt;Anyway, thank you for your help.&lt;/p&gt;&lt;/div&gt;</description><author>Likurg</author><pubDate>Mon, 18 Jan 2010 19:56:23 GMT</pubDate><guid isPermaLink="false">New Post: WinUnit and VS2005 20100118075623P</guid></item><item><title>New Post: WinUnit and VS2005</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=81189</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I know it definitely works in VS 2005; I think the warning added to winunit.h may have been overly conservative (it was added since some of the features don't compile in older versions).&amp;nbsp; Look in winunit.h and find the error message you saw and try removing that part and see if it works; if so, we should change the error condition.&lt;/p&gt;
&lt;p&gt;(BTW your English is great. :))&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;/div&gt;</description><author>mkblees</author><pubDate>Mon, 18 Jan 2010 15:09:31 GMT</pubDate><guid isPermaLink="false">New Post: WinUnit and VS2005 20100118030931P</guid></item><item><title>New Post: WinUnit and VS2005</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=81189</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I'd like to use WinUnit with Visual Studio 2005, but, unfortunately,&lt;/p&gt;
&lt;p&gt;WinUnit complains, that Compiler Version must be at least 9!&lt;/p&gt;
&lt;p&gt;Is it possible to use WinUnit with version 8??&lt;/p&gt;
&lt;p&gt;Any help would be highly appreciated.&lt;/p&gt;
&lt;p&gt;P.S sorry for my english.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>Likurg</author><pubDate>Mon, 18 Jan 2010 15:02:14 GMT</pubDate><guid isPermaLink="false">New Post: WinUnit and VS2005 20100118030214P</guid></item><item><title>New Post: Timeout</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=79666</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm wondering if it's possible to set timout for tests.&lt;/p&gt;
&lt;p&gt;If it isn't possible do you have any solution how to end a test when it is still wroking and how to send a message of failed test.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Dariusz Opitek&lt;/p&gt;&lt;/div&gt;</description><author>memphix</author><pubDate>Mon, 04 Jan 2010 09:54:01 GMT</pubDate><guid isPermaLink="false">New Post: Timeout 20100104095401A</guid></item><item><title>New Post: Test for classes in an .exe</title><link>http://winunit.codeplex.com/Thread/View.aspx?ThreadId=77298</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i have been trying to use WinUnit on classes used in a project released as a number of exe-files.&lt;/p&gt;
&lt;p&gt;In &amp;quot;Visual Studio-&amp;gt;ProjectProperties-&amp;gt;Linker-&amp;gt;Addidtional Dependencies&amp;quot; i added the full paths to the ClassName.obj - files (which works), but i would prefer to name only the path and not every single class.&lt;/p&gt;
&lt;p&gt;How to?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our App is split up in a number &amp;gt;10 common libraries (no problem testing these) an five executables.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can anyone give me a hint how to move on from here?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Niels Cederstr&amp;oslash;m, Kiel, Germany&lt;/p&gt;&lt;/div&gt;</description><author>NielsC</author><pubDate>Sun, 06 Dec 2009 19:35:41 GMT</pubDate><guid isPermaLink="false">New Post: Test for classes in an .exe 20091206073541P</guid></item></channel></rss>