mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
Fixed up tests
This commit is contained in:
parent
a4dde81ceb
commit
aa282fbd4d
13 changed files with 81 additions and 72 deletions
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue