Exemple #1
0
        public void TryGetValueOnNonNullObjectCanGetValue()
        {
            int foo;

            Assert.IsTrue(nonNullOption.TryGetValue(out foo));
            Assert.AreEqual(1, foo);
        }
Exemple #2
0
        public void TryGetValueOnNullObjectReturnsFalse()
        {
            int foo;

            Assert.IsFalse(nullOption.TryGetValue(out foo));
        }