Re: SetUpFixture

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <014801c81be9$e1879c30$6501a8c0@FERRARI>
Hi John,
 
Are you sure it doesn't execute, or are you simply not seeing the effect? A
trace statement in the setup method would tell us.
 
I assume CallSigns.InitCallSigns() creates some static members that your
tests use?
 
Charlie


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of John
Obremski
Sent: Wednesday, October 31, 2007 8:50 AM
To: [email protected]
Subject: [Nunit-users] SetUpFixture


Greetings! I am running NUnit 2.4.3. I'm trying to implement a SetUpFixture
to complement my test code. Here is a sample of my code:
 

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.IO;
using NUnit.Framework;
 
namespace TestClasses
{
    [SetUpFixture]
    public class SetUpConfigData
    {
        [SetUp]
        public void LoadConfigData()
        {
            // load the callsigns config data
            CallSigns.InitCallsigns();
        }
    }
}


All the test classes are in the same namespace, and they all execute
properly. However, this SetUpFixture class does not execute. Any
suggestions?
 
 
Thanks,
 
John Obremski
Software Deveoper
Tactronics, Inc.
Pittsburgh, PA   USA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.