📷 A modern, cross-platform, 2D Graphics library for .NET
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
1016 B

// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.IO;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;
namespace SixLabors.ImageSharp.Tests
{
[GroupOutput("Foo")]
public class GroupOutputTests
{
[Theory]
[WithBlankImages(1, 1, PixelTypes.Rgba32)]
public void OutputSubfolderName_ValueIsTakeFromGroupOutputAttribute<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
Assert.Equal("Foo", provider.Utility.OutputSubfolderName);
}
[Theory]
[WithBlankImages(1, 1, PixelTypes.Rgba32)]
public void GetTestOutputDir_ShouldDefineSubfolder<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
string expected = $"{Path.DirectorySeparatorChar}Foo{Path.DirectorySeparatorChar}";
Assert.Contains(expected, provider.Utility.GetTestOutputDir());
}
}
}