mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed up tests
This commit is contained in:
15
NzbDrone.Test.Common/ReflectionExtensions.cs
Normal file
15
NzbDrone.Test.Common/ReflectionExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Test.Common
|
||||
{
|
||||
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