فهرست منبع

Fix test Same to Equal

tznind 4 ماه پیش
والد
کامیت
8c009de9a0
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Tests/IntegrationTests/FluentTests/BasicFluentAssertionTests.cs

+ 2 - 2
Tests/IntegrationTests/FluentTests/BasicFluentAssertionTests.cs

@@ -49,9 +49,9 @@ public class BasicFluentAssertionTests
                                 };
                                 };
         using var c = With.A<Window> (40, 10)
         using var c = With.A<Window> (40, 10)
                           .Add (lbl )
                           .Add (lbl )
-                          .Then (()=>Assert.Same(lbl.Frame.Width,38)) // Window has 2 border
+                          .Then (()=>Assert.Equal(lbl.Frame.Width,38)) // Window has 2 border
                           .ResizeConsole (20,20)
                           .ResizeConsole (20,20)
-                          .Then (() => Assert.Same (lbl.Frame.Width, 18))
+                          .Then (() => Assert.Equal(lbl.Frame.Width, 18))
                           .Stop ();
                           .Stop ();
     }
     }