~cvetomir-todorov/nunitv2/bug603088

« back to all changes in this revision

Viewing changes to src/NUnitCore/tests/AssemblyTests.cs

  • Committer: Charlie Poole
  • Date: 2010-08-09 20:24:23 UTC
  • Revision ID: charlie@nunit.com-20100809202423-e1xzmjeadlirfrb9
Eliminate dependency on current directory in NUnit tests; update
TestContext to be closer to 3.0 object model.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        [TestFixture]
19
19
        public class AssemblyTests 
20
20
        {
21
 
                private string thisDll;
22
 
            private readonly string noTestFixturesDll = "test-utilities.dll";
 
21
        private string thisDll;
 
22
            private string noTestFixturesDll;
23
23
 
24
24
                [SetUp]
25
25
                public void InitStrings()
26
26
                {
27
 
                        thisDll = this.GetType().Module.Name;
 
27
            thisDll = AssemblyHelper.GetAssemblyPath(this.GetType());
 
28
            noTestFixturesDll = AssemblyHelper.GetAssemblyPath(typeof(NUnit.TestUtilities.TestBuilder));
28
29
                }
29
30
 
30
31
                // TODO: Review and remove unnecessary tests
55
56
                public void LoadAssemblyNotFound()
56
57
                {
57
58
                        TestSuiteBuilder builder = new TestSuiteBuilder();
58
 
                        builder.Build( new TestPackage( "XXXX.dll" ) );
 
59
                        builder.Build( new TestPackage( "/XXXX.dll" ) );
59
60
                }
60
61
 
61
62
                [Test]