Skip to content

Commit ceb52e0

Browse files
Fix test data generation
1 parent bd6d953 commit ceb52e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ShortDev.Microsoft.ConnectedDevices.Test/SerializationTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ static bool IsOk(Type TInterface, Type TClass)
3131
{
3232
foreach (var item in TClass.GetInterfaces())
3333
{
34-
if (item.IsGenericType && item.GetGenericTypeDefinition() == TInterface)
34+
if (item == TInterface)
35+
return true;
36+
else if (item.IsGenericType && item.GetGenericTypeDefinition() == TInterface)
3537
return true;
3638
}
3739
return false;

0 commit comments

Comments
 (0)