瀏覽代碼

Exclude test with "await" in platforms that don't have it

Donna Malayeri 12 年之前
父節點
當前提交
bcd0859884
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Ix.NET/Source/Tests/Tests.Creation.cs

+ 2 - 0
Ix.NET/Source/Tests/Tests.Creation.cs

@@ -40,6 +40,7 @@ namespace Tests
             Assert.IsTrue(hot);
         }
 
+#if HAS_AWAIT
         [TestMethod]
         public void CreateYield()
         {
@@ -58,6 +59,7 @@ namespace Tests
 
             Assert.AreEqual(j, 10);
         }
+#endif 
 
         private static IEnumerator<int> MyEnumerator()
         {