示例#1
0
        public void IsNone()
        {
            Option <int> opt1 = new Some <int>(1);

            Assert.False(opt1.IsNone());

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

            Assert.True(opt2.IsNone());
        }