Skip to content

Commit

Permalink
Let's check for stream id as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
AddictedCS committed Aug 28, 2023
1 parent 138bdb7 commit 096d066
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ public void ShouldSplitAvQueryMatch()
Assert.AreEqual(2, split.Count);
Assert.AreEqual(30, split[0].Audio?.Coverage.TrackLength ?? 0, 0.1);
Assert.AreEqual("2", split[0].TrackId);
Assert.AreEqual("CNN", split[0].StreamId);
Assert.AreEqual(DateTime.UnixEpoch, split[0].Audio?.MatchedAt);
Assert.IsNull(split[0].Video);

Assert.AreEqual(60, split[1].Audio?.Coverage.TrackLength ?? 0, 0.1);
Assert.AreEqual("CNN", split[1].StreamId);
Assert.AreEqual("4", split[1].TrackId);
Assert.AreEqual(DateTime.UnixEpoch.AddSeconds(60).Subtract(split[1].Audio?.MatchedAt ?? DateTime.MinValue).TotalSeconds, 0, 0.1);
Assert.IsNull(split[1].Video);
Expand Down

0 comments on commit 096d066

Please sign in to comment.