mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 04:16:51 +00:00
Add custom assert for readonly collection
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Octokit;
|
||||
using Octokit;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
internal class SearchUsersRequestTests
|
||||
@@ -14,7 +14,7 @@ internal class SearchUsersRequestTests
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user