diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetObjectForNativeVariantTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetObjectForNativeVariantTests.cs index d8a6bc398f5e0..4da69030fdead 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetObjectForNativeVariantTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetObjectForNativeVariantTests.cs @@ -351,8 +351,8 @@ public static IEnumerable GetObjectForNativeVariant_InvalidVarType_Tes yield return new object[] { 128 }; yield return new object[] { 4094 }; yield return new object[] { VT_BSTR_BLOB }; - yield return new object[] { VT_ILLEGALMASKED }; - yield return new object[] { VT_TYPEMASK }; + Assert.Equal(VT_BSTR_BLOB, VT_ILLEGALMASKED); + Assert.Equal(VT_BSTR_BLOB, VT_TYPEMASK); yield return new object[] { VT_VECTOR }; yield return new object[] { 4097 }; yield return new object[] { 8191 };