public void SomethingClass() { var test = new Test(); var mTest = test.ToMaybe(); Assert.AreEqual(true, mTest.IsSomething); Assert.AreEqual(false, mTest.IsNothing); }
public void MaybeOnMaybe() { var test = new Test(); var mTest = test.ToMaybe().ToMaybe(); Assert.AreEqual(true, mTest.IsSomething); Assert.AreEqual(false, mTest.IsNothing); Assert.IsFalse(mTest is IMaybe<IMaybe<Test>>); Assert.IsTrue(mTest is IMaybe<Test>); }