Fix alpha values in Color32Tests

This commit is contained in:
Oliver Booth 2022-05-16 10:40:32 +01:00
parent d312d05f7a
commit e23aa13fda
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
1 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
@ -8,14 +8,14 @@ namespace X10D.Unity.Tests.Drawing
{
public class Color32Tests
{
private static readonly Color32 Black = new(0, 0, 0, 1);
private static readonly Color32 White = new(255, 255, 255, 1);
private static readonly Color32 Red = new(255, 0, 0, 1);
private static readonly Color32 Green = new(0, 255, 0, 1);
private static readonly Color32 Blue = new(0, 0, 255, 1);
private static readonly Color32 Cyan = new(0, 255, 255, 1);
private static readonly Color32 Magenta = new(255, 0, 255, 1);
private static readonly Color32 Yellow = new(255, 255, 0, 1);
private static readonly Color32 Black = new(0, 0, 0, 255);
private static readonly Color32 White = new(255, 255, 255, 255);
private static readonly Color32 Red = new(255, 0, 0, 255);
private static readonly Color32 Green = new(0, 255, 0, 255);
private static readonly Color32 Blue = new(0, 0, 255, 255);
private static readonly Color32 Cyan = new(0, 255, 255, 255);
private static readonly Color32 Magenta = new(255, 0, 255, 255);
private static readonly Color32 Yellow = new(255, 255, 0, 255);
[UnityTest]
public IEnumerator Inverted_ShouldReturnInvertedColor()