Alistair Leslie-Hughes : msado15/tests: Add Field tests.

Alexandre Julliard julliard at winehq.org
Mon Jun 7 16:30:35 CDT 2021


Module: wine
Branch: master
Commit: 5a0dfa15ee6c8fedc735510b7f4582b6610ee243
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5a0dfa15ee6c8fedc735510b7f4582b6610ee243

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Mon Jun  7 16:28:56 2021 +1000

msado15/tests: Add Field tests.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msado15/tests/msado15.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dlls/msado15/tests/msado15.c b/dlls/msado15/tests/msado15.c
index e097239910d..16faefef550 100644
--- a/dlls/msado15/tests/msado15.c
+++ b/dlls/msado15/tests/msado15.c
@@ -271,6 +271,13 @@ static void test_Recordset(void)
     hr = _Recordset_Close( recordset );
     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;
     hr = _Recordset_get_State( recordset, &state );
     ok( hr == S_OK, "got %08x\n", hr );
@@ -639,6 +646,9 @@ static void test_Fields(void)
     hr = CoCreateInstance( &CLSID_Recordset, NULL, CLSCTX_INPROC_SERVER, &IID__Recordset, (void **)&recordset );
     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 );
     ok( hr == S_OK, "got %08x\n", hr );
 




More information about the wine-cvs mailing list