mirror of https://github.com/SixLabors/ImageSharp
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.
21 lines
452 B
21 lines
452 B
using System;
|
|
using SixLabors.ImageSharp.Formats.Bmp;
|
|
using Xunit;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Formats.Bmp
|
|
{
|
|
public class BmpFileHeaderTests
|
|
{
|
|
[Fact]
|
|
public void TestWrite()
|
|
{
|
|
var header = new BmpFileHeader(1, 2, 3, 4);
|
|
|
|
var buffer = new byte[14];
|
|
|
|
header.WriteTo(buffer);
|
|
|
|
Assert.Equal("AQACAAAAAwAAAAQAAAA=", Convert.ToBase64String(buffer));
|
|
}
|
|
}
|
|
}
|
|
|