<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Rujith Anand's space - VSTS</title>
    <link>http://www.rujith.net/RujithBlogTech/</link>
    <description>The techie in me</description>
    <language>en-us</language>
    <copyright>Rujith Anand</copyright>
    <lastBuildDate>Wed, 18 Jan 2006 13:22:51 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>rujith@rujith.net</managingEditor>
    <webMaster>rujith@rujith.net</webMaster>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=68e1f97f-d0e6-4766-b677-f3bbb03658ae</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,68e1f97f-d0e6-4766-b677-f3bbb03658ae.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,68e1f97f-d0e6-4766-b677-f3bbb03658ae.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=68e1f97f-d0e6-4766-b677-f3bbb03658ae</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <div>Converting your pretty good old test cases from Nunit to VS test cases is not
as simple as posted in many blogs. 
</div>
        <div>I tried to convert my test cases its really pain guys.. 
</div>
        <div>Its not jut renaming the name spaces and setting the alias. The Assert class
itself is different. Microsoft Assert class is directly opposite to the Nunit assert
classes.
</div>
        <div> 
</div>
        <div>For namespace and alias changes the following code is enough.
</div>
        <div> 
</div>
        <div>
          <pre>
            <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
              <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> Microsoft.VisualStudio.TestTools.UnitTesting; <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> TestFixture <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute; <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> Test <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute; <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> SetUp <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute; <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> TearDown <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute
; <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> TestFixtureSetUp <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute; <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">using</span> TestFixtureTearDown <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute; </span>
          </pre>
        </div>
      </body>
      <title>Migrating from Nunit to VSTS</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,68e1f97f-d0e6-4766-b677-f3bbb03658ae.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2006/01/18/MigratingFromNunitToVSTS.aspx</link>
      <pubDate>Wed, 18 Jan 2006 13:22:51 GMT</pubDate>
      <description>&lt;div&gt;Converting your pretty good old test cases from Nunit to VS test cases is not
as simple as posted in many blogs. 
&lt;/div&gt;
&lt;div&gt;I tried to convert my test cases its really pain guys.. 
&lt;/div&gt;
&lt;div&gt;Its not jut renaming the name spaces and setting the alias. The Assert class
itself is different. Microsoft Assert class is directly opposite to the Nunit assert
classes.
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;
&lt;/div&gt;
&lt;div&gt;For namespace and alias changes the following code is enough.
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;
&lt;/div&gt;
&lt;div&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; Microsoft.VisualStudio.TestTools.UnitTesting; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; TestFixture &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; Test &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; SetUp &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; TearDown &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute
; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; TestFixtureSetUp &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;using&lt;/span&gt; TestFixtureTearDown &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute; &lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,68e1f97f-d0e6-4766-b677-f3bbb03658ae.aspx</comments>
      <category>VSTS</category>
    </item>
  </channel>
</rss>