Ver código fonte

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

Dan Walmsley 9 anos atrás
pai
commit
33099b6130

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

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