📄 Colors/tests/OklchConverterTests/FromOklchShould.cs
using System.Numerics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Shouldly;
using SixLabors.ImageSharp.PixelFormats;

namespace Mosaic.Colors.Tests.OklchConverterTests;

[TestClass]
public sealed class FromOklchShould
{
    [TestMethod]
    public void ProduceABadassColor()
    {
        // Arrange
        var oklch = new Vector3(0.8391f, 0.1622f, 121.45f);

        // Act
        var rgb = Rgba32.FromOklch(oklch);

        // Assert
        rgb.R.ShouldBe<byte>(0xBA);
        rgb.G.ShouldBe<byte>(0xDA);
        rgb.B.ShouldBe<byte>(0x55);
    }
}