コード例 #1
0
 public void GetValue_ReturnIntNulableCase()
 {
     using (var connection = new SqliteConnection(connectionString)) {
         MakeTable(connection);
         connection.Execute(sqlInsert, new { name = "Number", str_value = 42 });
         dynamic parameters = new ParametersService(connection);
         int?    value      = parameters.NotExist(typeof(int?));
         Assert.That(value, Is.Null);
         value = parameters.Number(typeof(int?));
         Assert.That(value, Is.EqualTo(42));
     }
 }