static TestFixtureData CreateTestFixtureDataFromPath(string path) { var rv = new TestFixtureData(path); rv.SetArgDisplayNames(Path.GetFileName(path)); return(rv); }
public static void ArgDisplayNamesCanBeReset() { var caseData = new TestCaseData(42).SetArgDisplayNames("42"); caseData.SetArgDisplayNames(null); Assert.That(caseData.ArgDisplayNames, Is.Null); var fixtureData = new TestFixtureData(42).SetArgDisplayNames("42"); fixtureData.SetArgDisplayNames(null); Assert.That(fixtureData.ArgDisplayNames, Is.Null); }
public static TestFixtureData WithArgsDisplayName( this TestFixtureData data, string name) { return(data.SetArgDisplayNames(CompatibleDisplayName(name))); }