Commit 5a0dfa15 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msado15/tests: Add Field tests.

parent 9c5bb974
...@@ -271,6 +271,13 @@ static void test_Recordset(void) ...@@ -271,6 +271,13 @@ static void test_Recordset(void)
hr = _Recordset_Close( recordset ); hr = _Recordset_Close( recordset );
ok( hr == S_OK, "got %08x\n", hr ); ok( hr == S_OK, "got %08x\n", hr );
count = -1;
hr = Fields_get_Count( fields, &count );
todo_wine ok( !count, "got %d\n", count );
hr = Field_get_Name(field, &name);
todo_wine ok( hr == MAKE_ADO_HRESULT( adErrObjectNotSet ), "got %08x\n", hr );
state = -1; state = -1;
hr = _Recordset_get_State( recordset, &state ); hr = _Recordset_get_State( recordset, &state );
ok( hr == S_OK, "got %08x\n", hr ); ok( hr == S_OK, "got %08x\n", hr );
...@@ -639,6 +646,9 @@ static void test_Fields(void) ...@@ -639,6 +646,9 @@ static void test_Fields(void)
hr = CoCreateInstance( &CLSID_Recordset, NULL, CLSCTX_INPROC_SERVER, &IID__Recordset, (void **)&recordset ); hr = CoCreateInstance( &CLSID_Recordset, NULL, CLSCTX_INPROC_SERVER, &IID__Recordset, (void **)&recordset );
ok( hr == S_OK, "got %08x\n", hr ); ok( hr == S_OK, "got %08x\n", hr );
hr = _Recordset_QueryInterface( recordset, &IID_Fields, (void **)&fields );
ok( hr == E_NOINTERFACE, "got %08x\n", hr );
hr = _Recordset_get_Fields( recordset, &fields ); hr = _Recordset_get_Fields( recordset, &fields );
ok( hr == S_OK, "got %08x\n", hr ); ok( hr == S_OK, "got %08x\n", hr );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment