Files
RobustToolbox/Robust.Shared.IntegrationTests/Toolshed/ToolshedTypesTest.BugCheck.cs
PJB3005 788e9386fd Split up test project
Robust.UnitTesting was both ALL tests for RT, and also API surface for content tests.

Tests are now split into separate projects as appropriate, and the API side has also been split off.
2025-12-16 01:36:53 +01:00

17 lines
476 B
C#

using System;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Robust.UnitTesting.Shared.Toolshed;
internal sealed partial class ToolshedTypesTest
{
// Assert that T -> Nullable<T> holds and it's inverse does not.
[Test]
public void Bug_Nullables_08_21_2023()
{
Assert.That(Toolshed.IsTransformableTo(typeof(int), typeof(Nullable<int>)));
Assert.That(!Toolshed.IsTransformableTo(typeof(Nullable<int>), typeof(int)));
}
}