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