public void TestBool_WIthFalse() { var service = this.GetService(); var xmlValue = new XmlBool("Boolean", false); var result = service.Resolve <bool>(xmlValue); Assert.AreEqual(false, result); }
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); }
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); } }
public LearnSkill() { this.autolearn = new XmlBool(false); }
public XmlBoolParser(XmlBool def, string nodeName) : base(def, nodeName) { m_xmlDef = def; }
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; }
public bool Equals(XmlBool other) { return(m_value == other.m_value); }