mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
919 B
33 lines
919 B
using ErsatzTV.Core.Domain; |
|
using ErsatzTV.Core.Scheduling; |
|
using NUnit.Framework; |
|
using Shouldly; |
|
|
|
namespace ErsatzTV.Core.Tests.Scheduling.ClassicScheduling; |
|
|
|
public class GetStartTimeAfterTests |
|
{ |
|
[Test] |
|
[Ignore("This test isn't ready to run yet")] |
|
public void Should_Return_Correct_Time_On_Dst_Fall_Back() |
|
{ |
|
var scheduleItem = new ProgramScheduleItemOne |
|
{ |
|
StartTime = TimeSpan.FromHours(3) |
|
}; |
|
|
|
var state = new PlayoutBuilderState( |
|
0, |
|
null, |
|
Option<int>.None, |
|
Option<DateTimeOffset>.None, |
|
false, |
|
false, |
|
0, |
|
DateTimeOffset.Parse("2025-11-02T00:00:00-05:00")); |
|
|
|
DateTimeOffset result = PlayoutModeSchedulerBase<ProgramScheduleItem>.GetStartTimeAfter(state, scheduleItem); |
|
|
|
result.ShouldBe(DateTimeOffset.Parse("2025-11-02T02:00:00-06:00")); |
|
} |
|
}
|
|
|