浏览代码

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)
                           .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)
-                          .Then (() => Assert.Same (lbl.Frame.Width, 18))
+                          .Then (() => Assert.Equal(lbl.Frame.Width, 18))
                           .Stop ();
     }