FruityFoundation/Base.Tests/Extensions/FSharpExtensionTests.cs
Kyle Ratti 18d2e1616b
v1.0
2022-02-13 11:59:47 -05:00

17 lines
439 B
C#

using CommonCore.Base.Extensions;
using CommonCore.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());
}