mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
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.
17 lines
476 B
C#
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)));
|
|
}
|
|
}
|