Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix: copy-paste error 'type' -> 'constructor'
  • Loading branch information
BartoszKlonowski committed Jul 26, 2021
commit 70f45eb4bd184a2dca4efacea53de9daa15bc49f
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public void GetConstructor_DeclaringTypeOfConstructorWithoutGenericParameters_Th
TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public);

ConstructorBuilder ctor = type.DefineDefaultConstructor(MethodAttributes.PrivateScope | MethodAttributes.Public | MethodAttributes.HideBySig | MethodAttributes.SpecialName | MethodAttributes.RTSpecialName);
AssertExtensions.Throws<ArgumentException>("type", () => TypeBuilder.GetConstructor(type.AsType(), ctor));
AssertExtensions.Throws<ArgumentException>("constructor", () => TypeBuilder.GetConstructor(type.AsType(), ctor));
}

[Fact]
Expand Down