Пример #1
0
        public void IsSome()
        {
            Option <int> opt1 = new Some <int>(1);

            Assert.True(opt1.IsSome());

            Option <int> opt2 = None <int> .Instance;

            Assert.False(opt2.IsSome());
        }