mirror of
https://github.com/MAKS-IT-COM/uscheduler.git
synced 2026-11-15 02:06:12 +01:00
30 lines
704 B
C#
30 lines
704 B
C#
using MaksIT.UScheduler.UI.Services;
|
|
|
|
|
|
namespace MaksIT.UScheduler.Tests;
|
|
|
|
public class SnapshotViewsTests {
|
|
[Fact]
|
|
public void Empty_request_is_every_screen() {
|
|
var views = SnapshotViews.Resolve([]);
|
|
|
|
Assert.Equal(SnapshotViews.All, views);
|
|
}
|
|
|
|
[Fact]
|
|
public void Requested_ids_stay_in_order() {
|
|
var views = SnapshotViews.Resolve(["settings", "scripts"]);
|
|
|
|
Assert.Equal(["settings", "scripts"], views);
|
|
}
|
|
|
|
[Theory]
|
|
[InlineData("scripts", true)]
|
|
[InlineData("Script-Logs", true)]
|
|
[InlineData("processes", true)]
|
|
[InlineData("chat", false)]
|
|
public void Known_ids_match_ignoring_case(string id, bool known) {
|
|
Assert.Equal(known, SnapshotViews.IsKnown(id));
|
|
}
|
|
}
|