// ReSharper disable InconsistentNaming namespace SixLabors.ImageSharp.Tests { using System.IO; using SixLabors.ImageSharp.PixelFormats; using Xunit; [GroupOutput("Foo")] public class GroupOutputTests { [Theory] [WithBlankImages(1, 1, PixelTypes.Rgba32)] public void OutputSubfolderName_ValueIsTakeFromGroupOutputAttribute(TestImageProvider provider) where TPixel : struct, IPixel { Assert.Equal("Foo", provider.Utility.OutputSubfolderName); } [Theory] [WithBlankImages(1,1, PixelTypes.Rgba32)] public void GetTestOutputDir_ShouldDefineSubfolder(TestImageProvider provider) where TPixel : struct, IPixel { string expected = $"{Path.DirectorySeparatorChar}Foo{Path.DirectorySeparatorChar}"; Assert.Contains(expected, provider.Utility.GetTestOutputDir()); } } }