Ejemplo n.º 1
0
        public void TestBool_WIthFalse()
        {
            var service = this.GetService();

            var xmlValue = new XmlBool("Boolean", false);

            var result = service.Resolve <bool>(xmlValue);

            Assert.AreEqual(false, result);
        }
Ejemplo n.º 2
0
        public void TestGuessBool_ToPropertyTypeString_WithFalse()
        {
            var service = this.GetService();

            var xmlValue = new XmlBool("Boolean", false);

            var result = service.Resolve <string>(xmlValue);

            Assert.AreEqual("false", result);
        }
Ejemplo n.º 3
0
        public static bool ReadXmlBool(XmlElement xml, string attribute, ref XmlBool value)
        {
            bool b = false;

            if (ReadBoolean(xml, attribute, ref b))
            {
                if (b)
                {
                    value = XmlBool.True;
                }
                else
                {
                    value = XmlBool.False;
                }
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 4
0
 public LearnSkill()
 {
     this.autolearn = new XmlBool(false);
 }
Ejemplo n.º 5
0
 public XmlBoolParser(XmlBool def, string nodeName)
     : base(def, nodeName)
 {
     m_xmlDef = def;
 }
Ejemplo n.º 6
0
 public LearnSkill()
 {
     this.autolearn = new XmlBool(false);
 }
Ejemplo n.º 7
0
        public static bool ReadXmlBool( XmlElement xml, string attribute, ref XmlBool value )
        {
            bool b = false;

            if (ReadBoolean(xml, attribute, ref b))
            {
                if (b)
                    value = XmlBool.True;
                else
                    value = XmlBool.False;
                return true;
            }
            else
                return false;
        }
Ejemplo n.º 8
0
 public bool Equals(XmlBool other)
 {
     return(m_value == other.m_value);
 }