Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more assertions for CFDictionaryRef.ByReference and CFStringRef.ByRererence #1436

Merged
merged 1 commit into from May 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -271,6 +271,9 @@ public void testCFStringRefByReference() {
// test constructor(null)
assertNull(new CFStringRef.ByReference(null).getValue());

// test constructor(CFStringRef)
assertTrue(CF.CFEqual(new CFStringRef.ByReference(key).getStringRefValue(), key));

// test setValue(null)
assertNotNull(byRef.getStringRefValue());
byRef.setValue(null);
Expand Down Expand Up @@ -315,6 +318,9 @@ public void testCFDictionaryRefByReference() {
// test constructor(null)
assertNull(new CFDictionaryRef.ByReference(null).getValue());

// test constructor(CFDictionaryRef)
assertTrue(CF.CFEqual(new CFDictionaryRef.ByReference(dict).getDictionaryRefValue(), dict));

// test setValue(null)
assertNotNull(byRef.getDictionaryRefValue());
byRef.setValue(null);
Expand Down