mirror of
https://github.com/Cysharp/R3.git
synced 2026-10-28 23:12:29 +08:00
21 lines
444 B
C#
21 lines
444 B
C#
namespace R3.Tests.OperatorTests;
|
|
|
|
public class IsEmptyTest
|
|
{
|
|
[Fact]
|
|
public async Task Positive()
|
|
{
|
|
var range = Observable.Empty<int>();
|
|
var task = range.IsEmptyAsync();
|
|
(await task).ShouldBeTrue();
|
|
}
|
|
|
|
[Fact]
|
|
public async Task Negative()
|
|
{
|
|
var range = Observable.Return(0);
|
|
var task = range.IsEmptyAsync();
|
|
(await task).ShouldBeFalse();
|
|
}
|
|
}
|