public void TryGetValueOnNonNullObjectCanGetValue() { int foo; Assert.IsTrue(nonNullOption.TryGetValue(out foo)); Assert.AreEqual(1, foo); }
public void TryGetValueOnNullObjectReturnsFalse() { int foo; Assert.IsFalse(nullOption.TryGetValue(out foo)); }