示例#1
0
 public void Test10()
 {
     int[] r = new int[] { 1, 1 };
     Assert.Equal(r, Kata.sqInRect(2, 1));
 }
示例#2
0
 public void Test1()
 {
     int[] r = new int[] { 3, 2, 1, 1 };
     Assert.Equal(r, Kata.sqInRect(5, 3));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#7
0
 public void Test5()
 {
     int[] r = new int[] { 14, 6, 6, 2, 2, 2 };
     Assert.Equal(r, Kata.sqInRect(14, 20));
 }
示例#8
0
 public void Test4()
 {
     int[] r = new int[] { 14, 6, 6, 2, 2, 2 };
     Assert.Equal(r, Kata.sqInRect(20, 14));
 }
示例#9
0
 public void Test3()
 {
     Assert.Equal(null, Kata.sqInRect(5, 5));
 }