Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/guiunit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/Internal/Filters/SimpleNameFilter.cs')
-rwxr-xr-xsrc/framework/Internal/Filters/SimpleNameFilter.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/framework/Internal/Filters/SimpleNameFilter.cs b/src/framework/Internal/Filters/SimpleNameFilter.cs
index 6deecf5..becc675 100755
--- a/src/framework/Internal/Filters/SimpleNameFilter.cs
+++ b/src/framework/Internal/Filters/SimpleNameFilter.cs
@@ -22,6 +22,9 @@
// ***********************************************************************
using System;
+using System.Text;
+
+
#if CLR_2_0 || CLR_4_0
using System.Collections.Generic;
#endif
@@ -88,5 +91,17 @@ namespace NUnit.Framework.Internal.Filters
return true;
return false;
}
+
+ /// <summary>
+ /// Returns a <see cref="System.String"/> that represents the current <see cref="NUnit.Framework.Internal.Filters.SimpleNameFilter"/>.
+ /// </summary>
+ /// <returns>A <see cref="System.String"/> that represents the current <see cref="NUnit.Framework.Internal.Filters.SimpleNameFilter"/>.</returns>
+ public override string ToString ()
+ {
+ StringBuilder s = new StringBuilder("[SimpleNameFilter]: ");
+ foreach (var name in names)
+ s.Append (name + " ");
+ return s.ToString ();
+ }
}
}