~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to tests/UnitTests/Mono.TextEditor.Tests.DefaultEditActions/SelectionActionTests.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
1234567890
42
42
1234567890");
43
43
                        SelectionActions.MoveLeft (data);
44
 
                        Assert.AreEqual (new Selection (2, 4, 2, 3), data.MainSelection);
 
44
                        Assert.AreEqual (new Selection (DocumentLocation.MinLine + 2, DocumentLocation.MinColumn +  4, DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 3), data.MainSelection);
45
45
                }
46
46
                
47
47
                [Test()]
53
53
1234567890
54
54
1234567890");
55
55
                        SelectionActions.MoveRight (data);
56
 
                        Assert.AreEqual (new Selection (2, 4, 2, 5), data.MainSelection);
 
56
                        Assert.AreEqual (new Selection (DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 4, DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 5), data.MainSelection);
57
57
                }
58
58
                
59
59
                [Test()]
65
65
1234567890
66
66
1234567890");
67
67
                        SelectionActions.MoveDown (data);
68
 
                        Assert.AreEqual (new Selection (2, 4, 3, 4), data.MainSelection);
 
68
                        Assert.AreEqual (new Selection (DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 4, DocumentLocation.MinLine + 3, DocumentLocation.MinColumn + 4), data.MainSelection);
69
69
                }
70
70
                
71
71
                [Test()]
77
77
1234567890
78
78
1234567890");
79
79
                        SelectionActions.MoveUp (data);
80
 
                        Assert.AreEqual (new Selection (2, 4, 1, 4), data.MainSelection);
 
80
                        Assert.AreEqual (new Selection (DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 4, DocumentLocation.MinLine + 1, DocumentLocation.MinColumn + 4), data.MainSelection);
81
81
                }
82
82
                
83
83
                [Test()]
89
89
1234567890
90
90
1234567890");
91
91
                        SelectionActions.MoveToDocumentStart (data);
92
 
                        Assert.AreEqual (new Selection (2, 4, 0, 0), data.MainSelection);
 
92
                        Assert.AreEqual (new Selection (DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 4, DocumentLocation.MinLine, DocumentLocation.MinColumn), data.MainSelection);
93
93
                }
94
94
                
95
95
                [Test()]
101
101
1234567890
102
102
1234567890");
103
103
                        SelectionActions.MoveToDocumentEnd (data);
104
 
                        Assert.AreEqual (new Selection (2, 4, 4, 10), data.MainSelection);
 
104
                        Assert.AreEqual (new Selection (DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 4, DocumentLocation.MinLine + 4, DocumentLocation.MinColumn + 10), data.MainSelection);
105
105
                }
106
106
                
107
107
                [Test()]
113
113
1234567890
114
114
1234567890");
115
115
                        SelectionActions.MoveLineEnd (data);
116
 
                        Assert.AreEqual (new Selection (2, 4, 2, 10), data.MainSelection);
 
116
                        Assert.AreEqual (new Selection (DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 4, DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 10), data.MainSelection);
117
117
                }
118
118
                
119
119
                [Test()]
125
125
1234567890
126
126
1234567890");
127
127
                        SelectionActions.MoveLineHome (data);
128
 
                        Assert.AreEqual (new Selection (2, 4, 2, 0), data.MainSelection);
 
128
                        Assert.AreEqual (new Selection (DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 4, DocumentLocation.MinLine + 2, DocumentLocation.MinColumn), data.MainSelection);
129
129
                }
130
130
                
131
131
                [Test()]