~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to addins/RowTest/NUnitExtension.RowTest.Tests/OrderedTest.cs

  • Committer: charliepoole
  • Date: 2008-05-05 22:17:22 UTC
  • Revision ID: vcs-imports@canonical.com-20080505221722-7bdjujqed8pk6al3
Add back RowTestExtension as a separately compiled assembly, bundled
with NUnit, and modify build script to handle addins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// *********************************************************************
 
2
// Copyright 2007, Andreas Schlapsi
 
3
// This is free software licensed under the MIT license. 
 
4
// *********************************************************************
 
5
using System;
 
6
using NUnit.Framework;
 
7
using NUnitExtension.RowTest;
 
8
 
 
9
namespace NUnitExtension.RowTest.Tests
 
10
{
 
11
        // The tests in this fixture should appear ordered in the NUnit GUI.
 
12
        [TestFixture]
 
13
        public class OrderedTest
 
14
        {
 
15
                [Test]
 
16
                public void Test1_SomeTest()
 
17
                {
 
18
                        Assert.AreEqual (1, 1);
 
19
                }
 
20
 
 
21
                [RowTest]
 
22
                [Row(100)]
 
23
                [Row(200)]
 
24
                public void Test2_OtherTest(int argument)
 
25
                {
 
26
                        Assert.AreEqual (argument, argument);
 
27
                }
 
28
                
 
29
                [Test]
 
30
                public void Test3_OneMoreTest()
 
31
                {
 
32
                        Assert.AreEqual (1, 1);
 
33
                }
 
34
        }
 
35
}