Ejemplo n.º 1
0
        internal static ConnectionInfoInheritance GetRandomizedInheritance(ConnectionInfo parent)
        {
            var inheritance = new ConnectionInfoInheritance(parent, true);

            foreach (var property in inheritance.GetProperties())
            {
                property.SetValue(inheritance, Randomizer.RandomBool());
            }
            return(inheritance);
        }
        public void GetPropertiesReturnsListOfSettableProperties()
        {
            var hasIconProperty = _inheritance.GetProperties().Contains(typeof(ConnectionInfoInheritance).GetProperty("Icon"));

            Assert.That(hasIconProperty, Is.True);
        }