public void Bgr565_ToRgba32() { // arrange var bgra = new Bgr565(Vector3.One); var expected = new Rgba32(Vector4.One); var actual = default(Rgba32); // act bgra.ToRgba32(ref actual); Assert.Equal(expected, actual); }
public void Bgr565_ToRgba32() { // arrange var bgra = new Bgr565(0.1F, -0.3F, 0.5F); var actual = default(Rgba32); var expected = new Rgba32(25, 0, 132, 255); // act bgra.ToRgba32(ref actual); // assert Assert.Equal(expected, actual); }