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.
32 lines
839 B
32 lines
839 B
using AutoFixture.NUnit3;
|
|
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
using Recyclarr.TestLibrary.AutoFixture;
|
|
using Recyclarr.TrashLib.Services.Common;
|
|
using Recyclarr.TrashLib.TestLibrary;
|
|
using Spectre.Console.Testing;
|
|
|
|
namespace Recyclarr.TrashLib.Tests.CustomFormat;
|
|
|
|
[TestFixture]
|
|
[Parallelizable(ParallelScope.All)]
|
|
public class GuideDataListerTest
|
|
{
|
|
[Test, AutoMockData]
|
|
public void Custom_formats_appear_in_console_output(
|
|
[Frozen(Matching.ImplementedInterfaces)] TestConsole console,
|
|
GuideDataLister sut)
|
|
{
|
|
var testData = new[]
|
|
{
|
|
NewCf.Data("First", "123"),
|
|
NewCf.Data("Second", "456")
|
|
};
|
|
|
|
sut.ListCustomFormats(testData);
|
|
|
|
console.Output.Should().ContainAll(
|
|
testData.SelectMany(x => new[] {x.Name, x.TrashId}));
|
|
}
|
|
}
|