public virtual void TestGetInstance_String_IllegalCharacter() { try { HexBinaryDataType.GetInstance("rbcf"); Assert.Fail(); } catch (Indeterminate e) { Assert.AreEqual(e.Message, Indeterminate.IndeterminateSyntaxError); } }
public virtual void TestGetInstance_String_Null() { try { HexBinaryDataType.GetInstance(""); Assert.Fail(); } catch (Indeterminate e) { Assert.AreEqual(e.Message, Indeterminate.IndeterminateSyntaxError); } try { HexBinaryDataType.GetInstance(" \n"); Assert.Fail(); } catch (Indeterminate e) { Assert.AreEqual(e.Message, Indeterminate.IndeterminateSyntaxError); } }
public DataTypeValue GetInstance(Node node) { return(HexBinaryDataType.GetInstance(node)); }
public DataTypeValue GetInstance(string value) { return(HexBinaryDataType.GetInstance(value)); }
public virtual void TestGetValue() { Assert.AreEqual("0bcf", HexBinaryDataType.GetInstance("0bcf").Value); }
public virtual void TestEquals() { Assert.AreEqual(HexBinaryDataType.GetInstance("0bcf"), HexBinaryDataType.GetInstance("0bcf")); }