示例#1
0
 static void Fail()
 {
     Assert.Equal(TryParse.Int16("a"), None());
 }
示例#2
0
 static void Null()
 {
     Assert.Equal(TryParse.Int16(null), None());
 }
示例#3
0
 static void Success()
 {
     Assert.Equal(TryParse.Int16("1"), Some((short)1));
 }