diff --git a/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj b/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj
index a0c96e899..f24ba68be 100644
--- a/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj
+++ b/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj
@@ -61,6 +61,7 @@
+
diff --git a/NzbDrone.Common.Test/ReflectionExtensions.cs b/NzbDrone.Common.Test/ReflectionExtensions.cs
new file mode 100644
index 000000000..c5aee4d5e
--- /dev/null
+++ b/NzbDrone.Common.Test/ReflectionExtensions.cs
@@ -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(this object obj, string propertyName)
+ {
+ return (T)obj.GetType().GetProperty(propertyName).GetValue(obj, null);
+ }
+ }
+}
diff --git a/NzbDrone.Core.Test/JobTests/BacklogSearchJobTest.cs b/NzbDrone.Core.Test/JobTests/BacklogSearchJobTest.cs
index 17fd588b0..7362c71d3 100644
--- a/NzbDrone.Core.Test/JobTests/BacklogSearchJobTest.cs
+++ b/NzbDrone.Core.Test/JobTests/BacklogSearchJobTest.cs
@@ -12,6 +12,7 @@ using NzbDrone.Core.Providers;
using NzbDrone.Core.Providers.Core;
using NzbDrone.Core.Repository;
using NzbDrone.Core.Test.Framework;
+using NzbDrone.Test.Common;
using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.JobTests
@@ -65,23 +66,19 @@ namespace NzbDrone.Core.Test.JobTests
.With(e => e.Series = series)
.Build();
- WithStrictMocker();
WithEnableBacklogSearching();
Mocker.GetMock()
.Setup(s => s.EpisodesWithoutFiles(true)).Returns(episodes);
Mocker.GetMock()
- .Setup(s => s.Start(notification, new { EpisodeId = 1 }));
+ .Setup(s => s.Start(notification, It.Is
diff --git a/NzbDrone.Test.Common/ReflectionExtensions.cs b/NzbDrone.Test.Common/ReflectionExtensions.cs
new file mode 100644
index 000000000..4b32830e2
--- /dev/null
+++ b/NzbDrone.Test.Common/ReflectionExtensions.cs
@@ -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(this object obj, string propertyName)
+ {
+ return (T)obj.GetType().GetProperty(propertyName).GetValue(obj, null);
+ }
+ }
+}
diff --git a/NzbDrone.Web/Properties/AssemblyInfo.cs b/NzbDrone.Web/Properties/AssemblyInfo.cs
index f638cd457..9f3959149 100644
--- a/NzbDrone.Web/Properties/AssemblyInfo.cs
+++ b/NzbDrone.Web/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
using System.Reflection;
+using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("NzbDrone.Web")]
@@ -10,4 +11,6 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.*")]
-[assembly: AssemblyFileVersion("1.0.0.*")]
\ No newline at end of file
+[assembly: AssemblyFileVersion("1.0.0.*")]
+
+[assembly: InternalsVisibleTo("NzbDrone.Core")]
\ No newline at end of file