浏览代码

Fix ImmutableListTest: The code should be tested when System.Reactive is visible to the test assembly, which is exactly when it is signed (and not vice versa). The SIGNED-directive is thus added to the Uwp-DeviceRunner project. (#542)

Daniel C. Weber 7 年之前
父节点
当前提交
dfbe9044da

+ 1 - 0
Rx.NET/Source/tests/Tests.System.Reactive.Uwp.DeviceRunner/Tests.System.Reactive.Uwp.DeviceRunner.csproj

@@ -156,6 +156,7 @@
   </PropertyGroup>
   <PropertyGroup>
     <SignAssembly>true</SignAssembly>
+    <DefineConstants Condition="$(SignAssembly) == 'true'">$(DefineConstants);SIGNED</DefineConstants>
     <UpdateAssemblyInfo>false</UpdateAssemblyInfo>
   </PropertyGroup>
   <PropertyGroup>

+ 1 - 1
Rx.NET/Source/tests/Tests.System.Reactive/Tests/ImmutableListTest.cs

@@ -4,7 +4,7 @@ using System.Reactive;
 
 namespace ReactiveTests.Tests
 {
-#if !SIGNED
+#if SIGNED
     
     public class ImmutableListTest
     {