FruityFoundation/Base.Tests/Extensions/FSharpExtensionTests.cs
2022-02-24 19:25:28 -05:00

17 lines
451 B
C#

using FruityFoundation.Base.Extensions;
using FruityFoundation.Base.Structures;
using Microsoft.FSharp.Core;
using NUnit.Framework;
namespace Base.Tests.Extensions;
public class FSharpExtensionTests
{
[Test]
public void TestNoneIntToMaybe() =>
Assert.AreEqual(Maybe<int>.Empty(), FSharpOption<int>.None.ToMaybe());
[Test]
public void TestSomeIntToMaybe() =>
Assert.AreEqual(Maybe<int>.Create(25), FSharpOption<int>.Some(25).ToMaybe());
}