Skip to content

Commit 6c85a9f

Browse files
committed
Exclude move tests from silverlight build
1 parent d7905d6 commit 6c85a9f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

ReactiveUI.Tests/ReactiveCollectionTest.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void ItemsAddedAndRemovedTest()
8989
Assert.Equal(before_removed.Count, removed.Count);
9090
removed.AssertAreEqual(before_removed);
9191
}
92-
92+
#if !SILVERLIGHT
9393
[Fact]
9494
public void MoveShouldBehaveAsObservableCollectionMove()
9595
{
@@ -133,7 +133,7 @@ public void MoveShouldBehaveAsObservableCollectionMove()
133133
}
134134
}
135135
}
136-
136+
#endif
137137
[Fact]
138138
public void ReactiveCollectionIsRoundTrippable()
139139
{
@@ -415,6 +415,7 @@ public void DerivedCollectionSignalledToResetShouldFireExactlyOnce()
415415
Assert.Equal(2, derived.Count);
416416
}
417417

418+
#if !SILVERLIGHT
418419
[Fact]
419420
public void DerivedCollectionMoveNotificationSmokeTest()
420421
{
@@ -436,7 +437,9 @@ public void DerivedCollectionMoveNotificationSmokeTest()
436437
}
437438
}
438439
}
440+
#endif
439441

442+
#if !SILVERLIGHT
440443
[Fact]
441444
public void DerivedCollectionShouldUnderstandMoveSignals()
442445
{
@@ -494,7 +497,9 @@ public void DerivedCollectionShouldUnderstandMoveSignals()
494497
Assert.True(source.SequenceEqual(new[] { "a", "b", "c", "d", "e", "f", }));
495498
Assert.True(derived.SequenceEqual(source));
496499
}
500+
#endif
497501

502+
#if !SILVERLIGHT
498503
[Fact]
499504
public void DerivedCollectionShouldUnderstandNestedMoveSignals()
500505
{
@@ -521,7 +526,9 @@ public void DerivedCollectionShouldUnderstandNestedMoveSignals()
521526
Assert.True(source.OrderByDescending(x => x).SequenceEqual(reverseNested));
522527
Assert.True(source.OrderBy(x => x).SequenceEqual(sortedNested));
523528
}
529+
#endif
524530

531+
#if !SILVERLIGHT
525532
[Fact]
526533
public void DerivedCollectionShouldUnderstandMoveEvenWhenSorted()
527534
{
@@ -574,7 +581,9 @@ public void DerivedCollectionShouldUnderstandMoveEvenWhenSorted()
574581
sourceNotifications.Clear();
575582
}
576583
}
584+
#endif
577585

586+
#if !SILVERLIGHT
578587
[Fact]
579588
public void DerivedCollectionShouldUnderstandDummyMoveSignal()
580589
{
@@ -602,7 +611,7 @@ public void DerivedCollectionShouldUnderstandDummyMoveSignal()
602611

603612
Assert.Equal(0, derivedNotification.Count);
604613
}
605-
614+
#endif
606615

607616
/// <summary>
608617
/// This test is a bit contrived and only exists to verify that a particularly gnarly bug doesn't get

0 commit comments

Comments
 (0)