Example #1
0
        public void TryGetValue_returns_false_for_undefined_property(string name)
        {
            var    rvm     = new Rv.Message();
            var    headers = new ReadOnlyRvMessageHeaders(rvm);
            object valueOut;

            Assert.IsFalse(headers.TryGetValue(name, out valueOut));
        }
Example #2
0
        public void TryGetValue_returns_true_for_defined_int_property(string name, int value)
        {
            var rvm = new Rv.Message();

            rvm.AddField(name, value);
            var    headers = new ReadOnlyRvMessageHeaders(rvm);
            object valueOut;

            Assert.IsTrue(headers.TryGetValue(name, out valueOut));
            Assert.AreEqual(value, valueOut, "valueOut");
        }