Example #1
0
 public void Test10()
 {
     int[] r = new int[] { 1, 1 };
     Assert.Equal(r, Kata.sqInRect(2, 1));
 }
Example #2
0
 public void Test1()
 {
     int[] r = new int[] { 3, 2, 1, 1 };
     Assert.Equal(r, Kata.sqInRect(5, 3));
 }
Example #3
0
 public void Test8()
 {
     int[] r = new int[] { 230, 230, 230, 41, 41, 41, 41, 41, 25, 16, 9, 7, 2, 2, 2, 1, 1 };
     Assert.Equal(r, Kata.sqInRect(731, 230));
 }
Example #4
0
 public void Test9()
 {
     int[] r = new int[] { 14, 14, 9, 5, 4, 1, 1, 1, 1 };
     Assert.Equal(r, Kata.sqInRect(37, 14));
 }
Example #5
0
 public void Test7()
 {
     int[] r = new int[] { 230, 230, 165, 65, 65, 35, 30, 5, 5, 5, 5, 5, 5 };
     Assert.Equal(r, Kata.sqInRect(625, 230));
 }
Example #6
0
 public void Test6()
 {
     int[] r = new int[] { 32, 32, 32, 32, 32, 32, 32, 16, 16 };
     Assert.Equal(r, Kata.sqInRect(240, 32));
 }
Example #7
0
 public void Test5()
 {
     int[] r = new int[] { 14, 6, 6, 2, 2, 2 };
     Assert.Equal(r, Kata.sqInRect(14, 20));
 }
Example #8
0
 public void Test4()
 {
     int[] r = new int[] { 14, 6, 6, 2, 2, 2 };
     Assert.Equal(r, Kata.sqInRect(20, 14));
 }
Example #9
0
 public void Test3()
 {
     Assert.Equal(null, Kata.sqInRect(5, 5));
 }