public void JumpToDoesNothingWhenFileNameIsEmptyString() { XmlSchema schemaObject = new XmlSchema(); schemaObject.SourceUri = String.Empty; DerivedXmlSchemaObjectLocation location = new DerivedXmlSchemaObjectLocation(schemaObject); Assert.IsFalse(location.IsDerivedJumpToFilePositionMethodCalled); }
public void Init() { XmlSchema schemaObject = new XmlSchema(); schemaObject.SourceUri = @"d:\test\a.xsd"; schemaObject.LineNumber = 2; schemaObject.LinePosition = 4; location = new DerivedXmlSchemaObjectLocation(schemaObject); location.JumpToFilePosition(); }
public void JumpToFilePositionMethodCallIsRecorded() { int line = 2; int column = 3; location = new DerivedXmlSchemaObjectLocation(null); location.CallJumpToFilePosition("test.xml", line, column); Assert.IsTrue(location.IsDerivedJumpToFilePositionMethodCalled); }
public void Init() { XmlSchemaObject schemaObject = null; location = new DerivedXmlSchemaObjectLocation(schemaObject); location.JumpToFilePosition(); }
public void DefaultJumpToFilePositionMethodLineParameter() { DerivedXmlSchemaObjectLocation location = new DerivedXmlSchemaObjectLocation(null); Assert.AreEqual(-1, location.JumpToFilePositionMethodLineParameter); }
public void DefaultJumpToFilePositionMethodFileNameParameter() { DerivedXmlSchemaObjectLocation location = new DerivedXmlSchemaObjectLocation(null); Assert.IsNull(location.JumpToFilePositionMethodFileNameParameter); }
public void DefaultIsDerivedJumpToFilePositionMethodCalledIsFalse() { DerivedXmlSchemaObjectLocation location = new DerivedXmlSchemaObjectLocation(null); Assert.IsFalse(location.IsDerivedJumpToFilePositionMethodCalled); }