1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Xml.Schema;
6
using ICSharpCode.XmlEditor;
8
using XmlEditor.Tests.Utils;
10
namespace XmlEditor.Tests.FindSchemaObject
13
public class NullSchemaObjectPassedToSchemaObjectLocationTestFixture
15
DerivedXmlSchemaObjectLocation location;
20
XmlSchemaObject schemaObject = null;
21
location = new DerivedXmlSchemaObjectLocation(schemaObject);
22
location.JumpToFilePosition();
26
public void FileNameIsEmptyString()
28
Assert.AreEqual(String.Empty, location.FileName);
32
public void LineNumberIsMinusOne()
34
Assert.AreEqual(-1, location.LineNumber);
38
public void LinePositionIsMinusOne()
40
Assert.AreEqual(-1, location.LinePosition);
44
public void JumpToFilePositionMethodDoesNothing()
46
location.JumpToFilePosition();
47
Assert.IsFalse(location.IsDerivedJumpToFilePositionMethodCalled);