Skip to content

Commit

Permalink
Fix ReplaySubject unit test which was skipped previously
Browse files Browse the repository at this point in the history
  • Loading branch information
reluctantmedia committed Jun 23, 2020
1 parent 284d5c5 commit 6ce6639
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Assets/Scripts/UnityTests/Rx/SubjectTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace UniRx.Tests
{

public class SubjectTests
public class SubjectTest
{
[Test]
public void Subject()
Expand Down Expand Up @@ -401,6 +401,7 @@ public void ReplaySubject()
}
}

[Test]
public void ReplaySubjectBufferReplay()
{
var subject = new ReplaySubject<int>(bufferSize: 3);
Expand All @@ -415,7 +416,7 @@ public void ReplaySubjectBufferReplay()
subject.OnNext(100);
subject.OnNext(1000);
subject.OnNext(10000);
onNext.Is(100, 1000, 10000); // cut 1, 10
onNext.Is(1, 10, 100, 1000, 10000);

// replay subscription
onNext.Clear();
Expand All @@ -424,7 +425,7 @@ public void ReplaySubjectBufferReplay()
onNext.Is(100, 1000, 10000);

subject.OnNext(20000);
onNext.Is(1000, 10000, 20000);
onNext.Is(100, 1000, 10000, 20000);

subject.OnCompleted();
onCompletedCallCount.Is(1);
Expand Down

0 comments on commit 6ce6639

Please sign in to comment.