mirror of
https://github.com/Cysharp/R3.git
synced 2026-10-28 23:12:29 +08:00
17 lines
311 B
C#
17 lines
311 B
C#
namespace R3.Tests.OperatorTests;
|
|
|
|
public class PairwiseTest
|
|
{
|
|
[Fact]
|
|
public void Pairwise()
|
|
{
|
|
using var list = Observable.Range(1, 3).Pairwise().ToLiveList();
|
|
|
|
list.AssertEqual(
|
|
[
|
|
(1, 2),
|
|
(2, 3)
|
|
]);
|
|
}
|
|
}
|