This commit is contained in:
@@ -33,6 +33,25 @@ public sealed class EventQueueTests
|
||||
Assert.Null(exception);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ClearConflicts_EntferntAlleKonflikte()
|
||||
{
|
||||
using var temp = new TempEventQueue();
|
||||
temp.Queue.AddConflict(new ConflictEntry
|
||||
{
|
||||
LocalEvent = MakeEvent(), RemoteEvent = MakeEvent(), Resolution = "LocalWon",
|
||||
});
|
||||
temp.Queue.AddConflict(new ConflictEntry
|
||||
{
|
||||
LocalEvent = MakeEvent(), RemoteEvent = MakeEvent(), Resolution = "RemoteWon",
|
||||
});
|
||||
|
||||
temp.Queue.ClearConflicts();
|
||||
|
||||
Assert.Empty(temp.Queue.GetUnreviewed());
|
||||
Assert.Equal(0, temp.Queue.ConflictCount());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetKnownServerSeq_UnbekannteEntitaet_LiefertNull()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user