Explorar el Código

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

Dan Walmsley hace 9 años
padre
commit
33099b6130
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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);
         }