Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tests/GenericCollections/ArrayGenericElementListTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void IList_OverGenericInstanceArray_RejectsAnotherInstantiationOnStore()
{
object[] array = new ListStoreBox<int>[1];

Assert.ThrowsException(typeof(Exception), () => { array[0] = new ListStoreBox<string>(); });
Assert.ThrowsException(typeof(ArrayTypeMismatchException), () => { array[0] = new ListStoreBox<string>(); });
}

[TestMethod]
Expand Down
2 changes: 1 addition & 1 deletion Tests/GenericCollections/ArrayGenericInterfaceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Array_IsNotInstance_OfOtherElementType()
{
object ints = new int[1];

Assert.IsFalse(ints is IList<uint>);
Assert.IsFalse(ints is IList<long>);
Assert.IsFalse(ints is IList<string>);
Assert.IsFalse(ints is IList<object>);
Assert.IsFalse(ints is IReadOnlyCollection<string>);
Expand Down
1 change: 1 addition & 0 deletions Tests/GenericCollections/GenericCollections.nfproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<Compile Include="CollectionTestBase.cs" />
<Compile Include="DictionaryTests.cs" />
<Compile Include="ListTests.cs" />
<Compile Include="VarianceTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
Loading