internal static bool IsFixedTestHost(TestHost host) { var typeInfo = host.GetType().GetTypeInfo(); if (!typeInfo.IsGenericType) { return(false); } var genericType = typeInfo.GetGenericTypeDefinition(); return(genericType == typeof(FixedParameterHost <>)); }