Fix test compilation

This commit is contained in:
Wojtek Figat
2024-05-17 15:47:50 +02:00
parent 69ae841f64
commit 2cdd0ff644

View File

@@ -1,6 +1,7 @@
// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
#if FLAX_TESTS
using System;
using NUnit.Framework;
namespace FlaxEngine.Tests
@@ -41,7 +42,7 @@ namespace FlaxEngine.Tests
[Test]
public void TestHexConversion()
{
String hex = Color.Blue.AlphaMultiplied(0.5f).ToHexString();
string hex = Color.Blue.AlphaMultiplied(0.5f).ToHexString();
Color col1 = Color.FromHex(hex);
Color col2 = Color.FromRGBA(0x0000FF7F);
Assert.AreEqual((Color32)col1, (Color32)col2);