mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Fixed up tests
This commit is contained in:
15
NzbDrone.Common.Test/ReflectionExtensions.cs
Normal file
15
NzbDrone.Common.Test/ReflectionExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Common.Test
|
||||
{
|
||||
public static class ReflectionExtensions
|
||||
{
|
||||
public static T GetPropertyValue<T>(this object obj, string propertyName)
|
||||
{
|
||||
return (T)obj.GetType().GetProperty(propertyName).GetValue(obj, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user