diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-28 23:35:00 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-28 23:35:00 +0800 |
commit | fbaa8cab95a91b887bbd2d108d27c5abb38e4e29 (patch) | |
tree | 97ed1fa767e1492cd3df292247d8fd3e47252882 /Timeline.Tests/Helpers/ReflectionHelper.cs | |
parent | 294807481dd42dc3c660e29630b36462e7bcfaaf (diff) | |
download | timeline-fbaa8cab95a91b887bbd2d108d27c5abb38e4e29.tar.gz timeline-fbaa8cab95a91b887bbd2d108d27c5abb38e4e29.tar.bz2 timeline-fbaa8cab95a91b887bbd2d108d27c5abb38e4e29.zip |
Add UserDetailController unit tests.
Diffstat (limited to 'Timeline.Tests/Helpers/ReflectionHelper.cs')
-rw-r--r-- | Timeline.Tests/Helpers/ReflectionHelper.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Timeline.Tests/Helpers/ReflectionHelper.cs b/Timeline.Tests/Helpers/ReflectionHelper.cs new file mode 100644 index 00000000..3f6036e3 --- /dev/null +++ b/Timeline.Tests/Helpers/ReflectionHelper.cs @@ -0,0 +1,13 @@ +using System.Linq;
+using System.Reflection;
+
+namespace Timeline.Tests.Helpers
+{
+ public static class ReflectionHelper
+ {
+ public static ParameterInfo GetParameter(this MethodInfo methodInfo, string name)
+ {
+ return methodInfo.GetParameters().Where(p => p.Name == name).Single();
+ }
+ }
+}
|