瀏覽代碼

Made methods internal for unit testing

Tig 1 年之前
父節點
當前提交
0c7f97c3f5
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      Terminal.Gui/Drawing/Aligner.cs

+ 6 - 6
Terminal.Gui/Drawing/Aligner.cs

@@ -146,7 +146,7 @@ public class Aligner : INotifyPropertyChanged
         return [];
     }
 
-    private static int [] Start (ref readonly int [] sizes, int maxSpaceBetweenItems, int spacesToGive)
+    internal static int [] Start (ref readonly int [] sizes, int maxSpaceBetweenItems, int spacesToGive)
     {
         var positions = new int [sizes.Length]; // positions of the items. the return value.
 
@@ -170,7 +170,7 @@ public class Aligner : INotifyPropertyChanged
         return positions;
     }
 
-    private static int [] IgnoreFirst (
+    internal static int [] IgnoreFirst (
         ref readonly int [] sizes,
         int containerSize,
         int totalItemsSize,
@@ -214,7 +214,7 @@ public class Aligner : INotifyPropertyChanged
         return positions;
     }
 
-    private static int [] IgnoreLast (
+    internal static int [] IgnoreLast (
         ref readonly int [] sizes,
         int containerSize,
         int totalItemsSize,
@@ -257,7 +257,7 @@ public class Aligner : INotifyPropertyChanged
         return positions;
     }
 
-    private static int [] Fill (ref readonly int [] sizes, int containerSize, int totalItemsSize)
+    internal static int [] Fill (ref readonly int [] sizes, int containerSize, int totalItemsSize)
     {
         var positions = new int [sizes.Length]; // positions of the items. the return value.
 
@@ -276,7 +276,7 @@ public class Aligner : INotifyPropertyChanged
         return positions;
     }
 
-    private static int [] Center (ref readonly int [] sizes, int containerSize, int totalItemsSize, int maxSpaceBetweenItems, int spacesToGive)
+    internal static int [] Center (ref readonly int [] sizes, int containerSize, int totalItemsSize, int maxSpaceBetweenItems, int spacesToGive)
     {
         var positions = new int [sizes.Length]; // positions of the items. the return value.
 
@@ -311,7 +311,7 @@ public class Aligner : INotifyPropertyChanged
         return positions;
     }
 
-    private static int [] End (ref readonly int [] sizes, int containerSize, int totalItemsSize, int maxSpaceBetweenItems, int spacesToGive)
+    internal static int [] End (ref readonly int [] sizes, int containerSize, int totalItemsSize, int maxSpaceBetweenItems, int spacesToGive)
     {
         var positions = new int [sizes.Length]; // positions of the items. the return value.
         int currentPosition = containerSize - totalItemsSize - spacesToGive;