Example #1
0
 static void Fail()
 {
     Assert.Equal(TryParse.Float("a"), None());
 }
Example #2
0
 static void Null()
 {
     Assert.Equal(TryParse.Float(null), None());
 }
Example #3
0
 static void Success()
 {
     Assert.Equal(TryParse.Float("1.0"), Some((float)1));
 }