Example #1
0
 public void AddTypedProperty1()
 {
     var col = new PropertyCollection();
     col.AddTypedProperty("foo");
     Assert.AreEqual(1, col.PropertyList.Count);
     Assert.IsTrue(col.ContainsProperty(typeof(string)));
 }
Example #2
0
        public void AddTypedProperty1()
        {
            var col = new PropertyCollection();

            col.AddTypedProperty("foo");
            Assert.AreEqual(1, col.PropertyList.Count);
            Assert.IsTrue(col.ContainsProperty(typeof(string)));
        }
Example #3
0
        public void TryGetTypedProperty1()
        {
            var col = new PropertyCollection();

            col.AddTypedProperty("foo");
            var opt = col.TryGetTypedProperty <string>();

            Assert.IsTrue(opt.IsSome());
            Assert.AreEqual("foo", opt.Value);
        }
Example #4
0
 public void TryGetTypedProperty1()
 {
     var col = new PropertyCollection();
     col.AddTypedProperty("foo");
     var opt = col.TryGetTypedProperty<string>();
     Assert.IsTrue(opt.IsSome());
     Assert.AreEqual("foo", opt.Value);
 }