Uploaded on

Comparison between NUnit and MSTest unit testing frameworks.

Comparison between NUnit and MSTest unit testing frameworks.

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
7,650
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
157
Comments
0
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 25 April, 2008
    NUnitvsMSTest
    by Mel Gerats
  • 2. Nunit vs MSTest
    The showdown
    25 April, 2008
    2
    NUnit vs MSTest, by Mel Gerats
  • 3. Attributes
    Nunit
    [Category("name")]
    [ExpectedException("myException")]
    [Ignore("reason")]
    [Platform("name")]
    [SetUp]
    [TearDown]
    [Test]
    [TestFixture]
    [TextFixtureSetUp]
    [TextFixtureTearDown]
    [Explicit]
    MSTest
    [AssemblyCleanup]
    [AssemblyInitialize]
    [ClassCleanup]
    [ClassInitialize]
    [CssIteration("name")]
    [CssProjectStructure("name")]
    [DataSource("name")]
    [DeploymentItem("path")]
    [Description("text")]
    [ExpectedException("myExcepton")]
    [HostType("type")]
    [Ignore]
    [Owner("name")]
    [Priority(1)]
    [TestClass]
    [TestCleanup]
    [TestInitialize]
    [TestMethod]
    [TestProperty("name", "value")]
    [Timeout(30)]
    25 April, 2008
    3
    NUnit vs MSTest, by Mel Gerats
  • 4. Asserts
    Nunit
    Assert.AreEqual
    Assert.AreNotEqual
    Assert.AreNotSame
    Assert.AreSame
    Assert.Contains
    Assert.Fail
    Assert.Greater
    Assert.Ignore
    Assert.IsAssignableFrom
    Assert.IsEmpty
    Assert.IsFalse
    Assert.IsInstanceOfType
    Assert.IsNaN
    Assert.IsNotAssignableFrom
    Assert.IsNotEmpty
    Assert.IsNotInstanceOfType
    Assert.IsNotNull
    Assert.IsNull
    Assert.IsTrue
    Assert.Less
    MSTest
    Assert.AreEqual
    Assert.AreNotEqual
    Assert.AreNotSame
    Assert.AreSame
    Assert.Equals
    Assert.Fail
    Assert.Inconclusive
    Assert.IsFalse
    Assert.IsInstanceOfType
    Assert.IsNotInstanceOfType
    Assert.IsNotNull
    Assert.IsNull
    Assert.IsTrue
    25 April, 2008
    4
    NUnit vs MSTest, by Mel Gerats
  • 5. Features
    NUnit
    Independent test runner
    Integration with 3rd party tools
    Fast
    Open source, lots of updates
    MSTest
    Integrated in VS
    Slower
    25 April, 2008
    5
    NUnit vs MSTest, by Mel Gerats
  • 6. Features…
    NUnit
    Build server integration with some work
    Built-in mocking, addin framework
    Runs MS Tests !
    MSTest
    Build server integration
    Code coverage results integrated
    25 April, 2008
    6
    NUnit vs MSTest, by Mel Gerats
  • 7. Resources
    Attributescomparison
    25 April, 2008
    7
    NUnit vs MSTest, by Mel Gerats
  • 8. 8
    NUnit vs MSTest, by Mel Gerats
    25 April, 2008