Merge lp:~john-park-west/concordion-net/update1 into lp:concordion-net

Proposed by John Park West
Status: Merged
Merged at revision: 78
Proposed branch: lp:~john-park-west/concordion-net/update1
Merge into: lp:concordion-net
Diff against target: 24 lines (+5/-2)
1 file modified
Concordion/Internal/Runner/DefaultConcordionRunner.cs (+5/-2)
To merge this branch: bzr merge lp:~john-park-west/concordion-net/update1
Reviewer Review Type Date Requested Status
jeffreycameron@gmail.com Pending
Review via email: mp+35938@code.launchpad.net

Description of the change

DefaultConcordionRunner updated to also use Fixtures not ending with "Test"

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Concordion/Internal/Runner/DefaultConcordionRunner.cs'
--- Concordion/Internal/Runner/DefaultConcordionRunner.cs 2009-05-23 11:51:58 +0000
+++ Concordion/Internal/Runner/DefaultConcordionRunner.cs 2010-09-18 23:19:40 +0000
@@ -100,7 +100,10 @@
100 {100 {
101 var fixtureAssembly = fixture.GetType().Assembly;101 var fixtureAssembly = fixture.GetType().Assembly;
102 var fixtureType = fixtureAssembly.GetType(fixtureName, false, true);102 var fixtureType = fixtureAssembly.GetType(fixtureName, false, true);
103103 if (fixtureType == null)
104 {
105 fixtureType = fixtureAssembly.GetType(fixtureName+"Test", false, true);
106 }
104 if (fixtureType != null)107 if (fixtureType != null)
105 {108 {
106 return Activator.CreateInstance(fixtureType);109 return Activator.CreateInstance(fixtureType);
@@ -114,7 +117,7 @@
114 Resource hrefResource = resource.GetRelativeResource(href);117 Resource hrefResource = resource.GetRelativeResource(href);
115 var fixturePath = hrefResource.Path;118 var fixturePath = hrefResource.Path;
116 var fixtureFullyQualifiedPath = fixturePath.Replace("\\", ".");119 var fixtureFullyQualifiedPath = fixturePath.Replace("\\", ".");
117 var fixtureName = fixtureFullyQualifiedPath.Replace(".html", "Test");120 var fixtureName = fixtureFullyQualifiedPath.Replace(".html", "");
118121
119 if (fixtureName.StartsWith("."))122 if (fixtureName.StartsWith("."))
120 {123 {

Subscribers

People subscribed via source and target branches