예제 #1
0
 public void TryParse_Testing()
 {
     Assert.IsTrue(Assume.TryParse("1", out int _integer) && _integer == 1);
     Assert.IsTrue(Assume.TryParse("1.2", out float _float) && _float == 1.2f);
     Assert.IsTrue(Assume.TryParse("1.23", out double _double) && _double == 1.23d);
     Assert.IsTrue(Assume.TryParse("1.234", out decimal _decimal) && _decimal == 1.234m);
 }