public void process(String fragment) { TestRig = new TestRig(); this.ConfigureTestRig(); ProcessingResult = TestRig.WithFixture(this) .WithExtension(this.Extension) .ProcessFragment(fragment); }
public string Process(string fixtureNameSpace, string fixtureClassName) { var fullClassName = string.Concat(fixtureNameSpace, ".", fixtureClassName); var fixtureType = Type.GetType(fullClassName); var fixture = Activator.CreateInstance(fixtureType); var testRig = new TestRig(); testRig.Configuration = Configuration; var processingResult = testRig .WithFixture(fixture) .ProcessFragment("<p>anything..</p>"); var extensionNamesString = processingResult.GetRootElement().GetAttributeValue(FakeExtensionBase.FakeExtensionAttrName); var extensionNames = extensionNamesString.Split(',').Select(extensionName => extensionName.Trim()).ToList(); extensionNames.Sort(); return(String.Join(", ", extensionNames.ToArray())); }