示例#1
0
 public void Example()
 {
     Assert.Equal(4, Q04.GetIntSqrt(16));
     Assert.Equal(17, Q04.GetIntSqrt(300));
     Assert.Equal(4, Q04.SmartAssAns(16));
     Assert.Equal(17, Q04.SmartAssAns(300));
 }
示例#2
0
 public void EdgeCases()
 {
     Assert.Equal(0, Q04.BookAnswer(0));
     Assert.Equal(1, Q04.BookAnswer(1));
     //Assert.Equal(0, Q04.GetIntSqrt(0));
     //Assert.Equal(1, Q04.GetIntSqrt(1));
     Assert.Equal(0, Q04.SmartAssAns(0));
     Assert.Equal(1, Q04.SmartAssAns(1));
 }
示例#3
0
 public void ExampleWithBookAnswer()
 {
     Assert.Equal(4, Q04.BookAnswer(16));
     Assert.Equal(17, Q04.BookAnswer(300));
 }