Example #1
0
 public void SomethingClass()
 {
     var test = new Test();
     var mTest = test.ToMaybe();
     Assert.AreEqual(true, mTest.IsSomething);
     Assert.AreEqual(false, mTest.IsNothing);
 }
Example #2
0
 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>);
 }