~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/WixBinding/Test/Utils/MockCaret.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
5
using ICSharpCode.NRefactory;
 
6
using ICSharpCode.SharpDevelop.Editor;
 
7
 
 
8
namespace WixBinding.Tests.Utils
 
9
{
 
10
        public class MockCaret : ITextEditorCaret
 
11
        {
 
12
                Location position = Location.Empty;
 
13
                
 
14
                public MockCaret()
 
15
                {
 
16
                }
 
17
                
 
18
                public event EventHandler PositionChanged;
 
19
                
 
20
                protected virtual void OnPositionChanged(EventArgs e)
 
21
                {
 
22
                        if (PositionChanged != null) {
 
23
                                PositionChanged(this, e);
 
24
                        }
 
25
                }
 
26
                
 
27
                public int Offset {
 
28
                        get {
 
29
                                throw new NotImplementedException();
 
30
                        }
 
31
                        set {
 
32
                                throw new NotImplementedException();
 
33
                        }
 
34
                }
 
35
                
 
36
                public int Line {
 
37
                        get {
 
38
                                throw new NotImplementedException();
 
39
                        }
 
40
                        set {
 
41
                                throw new NotImplementedException();
 
42
                        }
 
43
                }
 
44
                
 
45
                public int Column {
 
46
                        get {
 
47
                                throw new NotImplementedException();
 
48
                        }
 
49
                        set {
 
50
                                throw new NotImplementedException();
 
51
                        }
 
52
                }
 
53
                
 
54
                public Location Position {
 
55
                        get { return position; }
 
56
                        set { position = value; }
 
57
                }
 
58
        }
 
59
}