Browse Source

Merge branch 'leaks-again' of https://github.com/Perspex/Perspex into fix_carousel_presenter

Dan Walmsley 9 years ago
parent
commit
33099b6130
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/Perspex.Base.UnitTests/PerspexObjectTests_Direct.cs

+ 2 - 0
tests/Perspex.Base.UnitTests/PerspexObjectTests_Direct.cs

@@ -344,6 +344,7 @@ namespace Perspex.Base.UnitTests
             {
                 var source = new Subject<string>();
                 var sub = target.Bind((PerspexProperty)Class1.FooProperty, source);
+                source.OnNext("foo");
                 return new WeakReference(source);
             };
 
@@ -351,6 +352,7 @@ namespace Perspex.Base.UnitTests
 
             GC.Collect();
 
+            Assert.Equal("foo", target.Foo);
             Assert.True(weakSource.IsAlive);
         }