Skip to content

Commit

Permalink
added parameter names to null argument tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrxx99 authored and eiriktsarpalis committed Nov 22, 2021
1 parent 090374e commit d88abd7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ public void AsReadOnly_TurnsIDictionaryIntoReadOnlyDictionary()
public void AsReadOnly_NullIList_ThrowsArgumentNullException()
{
IList<string> list = null;
Assert.Throws<ArgumentNullException>(() => list.AsReadOnly());
Assert.Throws<ArgumentNullException>("list", () => list.AsReadOnly());
}

[Fact]
public void AsReadOnly_NullIDictionary_ThrowsArgumentNullException()
{
IDictionary<string, string> dictionary = null;
Assert.Throws<ArgumentNullException>(() => dictionary.AsReadOnly());
Assert.Throws<ArgumentNullException>("dictionary", () => dictionary.AsReadOnly());
}
}
}

0 comments on commit d88abd7

Please sign in to comment.