~a-schlapsi/nunit-3.0/linux-makefile

« back to all changes in this revision

Viewing changes to src/tests/Attributes/TestFixtureAttributeTests.cs

  • Committer: Andreas Schlapsi
  • Date: 2010-01-23 23:14:05 UTC
  • mfrom: (18.1.137 work)
  • Revision ID: a.schlapsi@gmx.at-20100123231405-17deqoh18nfnbq1j
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
using System;
25
25
 
26
 
namespace NUnit.Framework.Tests
 
26
namespace NUnit.Framework.Attributes
27
27
{
28
28
    public class TestFixtureAttributeTests
29
29
    {
30
30
        static object[] fixtureArgs = new object[] { 10, 20, "Charlie" };
31
 
#if CLR_2_0
 
31
#if CLR_2_0 && !NUNITLITE
32
32
        static Type[] typeArgs = new Type[] { typeof(int), typeof(string) };
33
33
        static object[] combinedArgs = new object[] { typeof(int), typeof(string), 10, 20, "Charlie" };
34
34
#endif
38
38
        {
39
39
            TestFixtureAttribute attr = new TestFixtureAttribute();
40
40
            Assert.That(attr.Arguments.Length == 0);
41
 
#if CLR_2_0
 
41
#if CLR_2_0 && !NUNITLITE
42
42
            Assert.That(attr.TypeArgs.Length == 0);
43
43
#endif
44
44
        }
48
48
        {
49
49
            TestFixtureAttribute attr = new TestFixtureAttribute(fixtureArgs);
50
50
            Assert.That(attr.Arguments, Is.EqualTo( fixtureArgs ) );
51
 
#if CLR_2_0
 
51
#if CLR_2_0 && !NUNITLITE
52
52
            Assert.That(attr.TypeArgs.Length == 0 );
53
53
#endif
54
54
        }
55
55
 
56
 
#if CLR_2_0
 
56
#if CLR_2_0 && !NUNITLITE
57
57
        [Test]
58
58
        public void ConstructWithJustTypeArgs()
59
59
        {