Well, the idea was that it would be clear from reading the test which rules are actually there instead of decrypting that from reading test flags and expected results. Maybe I could simplify that by naming (D3D11_RESOURCE_MISC_SHARED | `D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX) as "sharing_type_flags". Like ``` BOOL expect_fail = FALSE; unsigned int sharing_type_flags = D3D11_RESOURCE_MISC_SHARED | D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX; if (desc.MiscFlags) { if (feature_level < D3D_FEATURE_LEVEL_10_0) expect_fail = TRUE; else if ((desc.MiscFlags & sharing_type_flags) == sharing_type_flags) expect_fail = TRUE; else if (!(desc.MiscFlags & sharing_type_flags)) expect_fail = TRUE; } ```