Skip to content

Commit

Permalink
Issue-156: added IReadOnlyList and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Nemtsev authored and Ilya Nemtsev committed Mar 3, 2021
1 parent caece74 commit 91c6dd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Agoda.Analyzers.Test/AgodaCustom/AG0018UnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public class TestClass
[TestCase("IReadOnlyDictionary<string, int>")]
[TestCase("KeyedCollection<string, string>")]
[TestCase("IEnumerable<string>")]
[TestCase("IReadOnlyCollection<string>")]
[TestCase("IReadOnlyList<string>")]
public async Task AG0018_WithPermittedCollection_ShouldNotShowWarning(string type)
{
var code = $@"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public class AG0018PermitOnlyCertainPubliclyExposedEnumerables : DiagnosticAnaly
"System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>",
"System.Collections.Generic.KeyedCollection<TKey, TValue>",
"System.Collections.Generic.IEnumerable<T>",
"System.Collections.Generic.IReadOnlyCollection<T>"
"System.Collections.Generic.IReadOnlyCollection<T>",
"System.Collections.Generic.IReadOnlyList<T>"
};

private static readonly LocalizableString Title = new LocalizableResourceString(
Expand Down

0 comments on commit 91c6dd2

Please sign in to comment.