FruityFoundation/Base.Tests/Structures/NullableExtensionTests.cs
Kyle Ratti 0e7e161327
1.3.0
2023-08-01 22:32:23 -04:00

16 lines
380 B
C#

using FruityFoundation.Base.Structures;
using NUnit.Framework;
namespace Base.Tests.Structures;
public class NullableExtensionTests
{
[Test]
public void TestNullableStructOfNullToMaybe() =>
Assert.AreEqual(Maybe.Empty<int>(), ((int?)null).ToMaybe());
[Test]
public void TestNullableStructOfValueToMaybe() =>
Assert.AreEqual(Maybe.Just(25), ((int?)25).ToMaybe());
}