Fixed failing DebuggerDisplay tests

This commit is contained in:
Kristian Hellang
2015-01-06 01:06:03 +01:00
parent cb4f056a86
commit c9838662dc
6 changed files with 65 additions and 7 deletions
@@ -176,6 +176,7 @@ namespace Octokit
/// <summary>
/// Helper class in generating the range values for a qualifer e.g. In or Size qualifiers
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Range
{
private string query = string.Empty;
@@ -220,6 +221,11 @@ namespace Octokit
}
}
internal string DebuggerDisplay
{
get { return String.Format(CultureInfo.InvariantCulture, "Query: {0}", query); }
}
/// <summary>
/// Helper class that build a <see cref="Range"/> with a LessThan comparator used for filtering results
/// </summary>
@@ -262,6 +268,7 @@ namespace Octokit
/// helper class in generating the date range values for the date qualifier e.g.
/// https://help.github.com/articles/searching-repositories#created-and-last-updated
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class DateRange
{
private readonly string query = string.Empty;
@@ -289,6 +296,11 @@ namespace Octokit
}
}
internal string DebuggerDisplay
{
get { return String.Format(CultureInfo.InvariantCulture, "Query: {0}", query); }
}
/// <summary>
/// helper method to create a LessThan Date Comparision
/// e.g. &lt; 2011