Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
Explain yield return null (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
fibann authored Jul 15, 2020
1 parent 69f2ffb commit e197371
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/unity/library/Tests/Runtime/MediaLineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public IEnumerator SetSource()
// Set an invalid source (wrong media kind)
Assert.Throws<ArgumentException>(() => mediaLine.Source = pc_go.AddComponent<DummyAudioSource>());

// Terminate the coroutine.
yield return null;
}

Expand Down Expand Up @@ -222,6 +223,7 @@ public IEnumerator SetReceiver()
// Set an invalid source (wrong media kind)
Assert.Throws<ArgumentException>(() => mediaLine.Receiver = pc_go.AddComponent<AudioReceiver>());

// Terminate the coroutine.
yield return null;
}
}
Expand Down
1 change: 1 addition & 0 deletions libs/unity/library/Tests/Runtime/VideoSenderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public IEnumerator CaptureStartsOnActivate()
//// Confirm the source stops streaming
//Assert.IsFalse(source.IsStreaming);

// Terminate the coroutine.
yield return null;
}
}
Expand Down

0 comments on commit e197371

Please sign in to comment.