예제 #1
0
        static TestFixtureData CreateTestFixtureDataFromPath(string path)
        {
            var rv = new TestFixtureData(path);

            rv.SetArgDisplayNames(Path.GetFileName(path));
            return(rv);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public static TestFixtureData WithArgsDisplayName(
     this TestFixtureData data,
     string name)
 {
     return(data.SetArgDisplayNames(CompatibleDisplayName(name)));
 }