Add custom assert for readonly collection

This commit is contained in:
Haacked
2014-02-26 23:15:10 -08:00
parent 9eb14f3c51
commit 5430718c58
5 changed files with 18 additions and 10 deletions
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using Octokit;
using Octokit;
using Octokit.Tests.Helpers;
using Xunit;
internal class SearchIssuesRequestTests
@@ -14,7 +14,7 @@ internal class SearchIssuesRequestTests
var result = request.MergedQualifiers();
// If I can cast this to a writeable collection, then that defeats the purpose of a read only.
Assert.Null(result as ICollection<string>);
AssertEx.IsReadOnlyCollection<string>(result);
}
}
}