浏览代码

Fixed CP unit test

Tig 11 月之前
父节点
当前提交
f882cd9f37
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      UnitTests/Views/ColorPickerTests.cs

+ 2 - 0
UnitTests/Views/ColorPickerTests.cs

@@ -478,6 +478,8 @@ public class ColorPickerTests
     public void ColorPicker_SwitchingColorModels_ResetsBars ()
     {
         var cp = GetColorPicker (ColorModel.RGB, false);
+        cp.BeginInit ();
+        cp.EndInit ();
         cp.SelectedColor = new (255, 0);
 
         cp.Draw ();