浏览代码

Whitelisting conversions in API compare.

Bart De Smet 8 年之前
父节点
当前提交
bb1d59e35d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Ix.NET/Source/ApiCompare/Program.cs

+ 5 - 1
Ix.NET/Source/ApiCompare/Program.cs

@@ -35,6 +35,10 @@ namespace ApiCompare
             "AsAsyncEnumerable",  // Trivially renamed
 
             "ForEachAsync",  // "foreach await" language substitute for the time being
+
+            "ToAsyncEnumerable",  // First-class conversions
+            "ToEnumerable",       // First-class conversions
+            "ToObservable",       // First-class conversions
         };
 
         private static readonly TypeSubstitutor subst = new TypeSubstitutor(new Dictionary<Type, Type>
@@ -54,7 +58,7 @@ namespace ApiCompare
 
         static void Compare(Type syncOperatorsType, Type asyncOperatorsType)
         {
-            var syncOperators = GetQueryOperators(new[] { syncInterfaceType, syncOrderedInterfaceType}, syncOperatorsType, exceptions);
+            var syncOperators = GetQueryOperators(new[] { syncInterfaceType, syncOrderedInterfaceType }, syncOperatorsType, exceptions);
             var asyncOperators = GetQueryOperators(new[] { asyncInterfaceType, asyncOrderedInterfaceType }, asyncOperatorsType, exceptions);
 
             CompareFactories(syncOperators.Factories, asyncOperators.Factories);