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
Check default values on params on added method
  • Loading branch information
lambdageek authored and github-actions committed Nov 1, 2022
commit 81d4e6d7c0d77b345cdc432e41b8cce91273dc6e
6 changes: 5 additions & 1 deletion src/libraries/System.Runtime.Loader/tests/ApplyUpdateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,11 @@ public static void TestReflectionAddNewMethod()
Assert.True(foundCallerMemberName);
Assert.True(foundOptional);

// TODO: check the default values of the last two params
Assert.True(parms[3].HasDefaultValue);
Assert.True(parms[4].HasDefaultValue);

Assert.Null(parms[3].DefaultValue);
Assert.Equal(string.Empty, parms[4].DefaultValue);
});
}
}
Expand Down