Browse Source

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

Donna Malayeri 12 years ago
parent
commit
bcd0859884
1 changed files with 2 additions and 0 deletions
  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()
         {