Fixed up tests

This commit is contained in:
Mark McDowall 2012-09-10 23:35:25 -07:00
parent a4dde81ceb
commit aa282fbd4d
13 changed files with 81 additions and 72 deletions

View 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);
}
}
}