Exemple #1
0
            public void ReturnsAllRegisteredProperties()
            {
                _propertyBag.SetValue("FirstProperty", 1);
                _propertyBag.SetValue("SecondProperty", "test");

                var allProperties = _propertyBag.GetAllNames().ToList();

                Assert.AreEqual(2, allProperties.Count);

                Assert.AreEqual("FirstProperty", allProperties[0]);
                //Assert.AreEqual(1, allProperties[0].Value);

                Assert.AreEqual("SecondProperty", allProperties[1]);
                //Assert.AreEqual("test", allProperties[1].Value);
            }