Пример #1
0
        public void TestListMapAddAndGet()
        {
            _listMap = _listMap.add("hello", 1);
            _listMap = _listMap.add("hello 2", 2);
            Option <int> v = _listMap.get("hello");

            Assert.IsTrue(v is Some <int>);
            Assert.IsTrue(v.nonEmpty());
            Assert.AreEqual(1, ((Some <int>)v).get());
        }