コード例 #1
0
 public void JumpToDoesNothingWhenFileNameIsEmptyString()
 {
     XmlSchema schemaObject = new XmlSchema();
     schemaObject.SourceUri = String.Empty;
     DerivedXmlSchemaObjectLocation location = new DerivedXmlSchemaObjectLocation(schemaObject);
     Assert.IsFalse(location.IsDerivedJumpToFilePositionMethodCalled);
 }
コード例 #2
0
 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();
 }
コード例 #3
0
        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();
		}
コード例 #5
0
 public void DefaultJumpToFilePositionMethodLineParameter()
 {
     DerivedXmlSchemaObjectLocation location = new DerivedXmlSchemaObjectLocation(null);
     Assert.AreEqual(-1, location.JumpToFilePositionMethodLineParameter);
 }
コード例 #6
0
 public void DefaultJumpToFilePositionMethodFileNameParameter()
 {
     DerivedXmlSchemaObjectLocation location = new DerivedXmlSchemaObjectLocation(null);
     Assert.IsNull(location.JumpToFilePositionMethodFileNameParameter);
 }
コード例 #7
0
 public void DefaultIsDerivedJumpToFilePositionMethodCalledIsFalse()
 {
     DerivedXmlSchemaObjectLocation location = new DerivedXmlSchemaObjectLocation(null);
     Assert.IsFalse(location.IsDerivedJumpToFilePositionMethodCalled);
 }