Пример #1
0
 public static void TestIsDigit(char c)
 {
     Assert.True(CL.IsDigit(c));
 }
Пример #2
0
 public static void TestSum()
 {
     Assert.Equal(7, CL.Sum(3, 4));
 }
Пример #3
0
 public static void TestLeaveOnlyNumbers()
 {
     Assert.Equal("2342", CL.LeaveOnlyNumbers("asdfasd2342"));
     Assert.Equal("2342a", CL.LeaveOnlyNumbers("asdfasd2342"));
     Assert.Equal("1342", CL.LeaveOnlyNumbers("1s3sda4sdf2"));
 }