Skip to content

Commit 6e1a956

Browse files
committed
Fixing tests
1 parent 002b0ac commit 6e1a956

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

Fluent.Ribbon.Tests/Controls/RibbonTabsContainerTests.cs

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void With_One_Tab()
3939

4040
container.UpdateLayout();
4141

42-
Assert.That(container.DesiredSize, Is.EqualTo(new Size(41, ReferenceHeight)));
42+
Assert.That(container.DesiredSize, Is.EqualTo(new Size(42, ReferenceHeight)));
4343
}
4444
}
4545

@@ -68,15 +68,15 @@ public void With_Many_Tab()
6868

6969
using (var testWindow = new TestRibbonWindow(container) { Width = ReferenceWidth })
7070
{
71-
Assert.That(container.DesiredSize, Is.EqualTo(new Size(306, ReferenceHeight)));
71+
Assert.That(container.DesiredSize, Is.EqualTo(new Size(310, ReferenceHeight)));
7272
Assert.That(container.ExtentWidth, Is.EqualTo(container.ViewportWidth));
7373

7474
Assert.That(childrenWidths, Is.EquivalentTo(new[]
7575
{
76-
126,
77-
82,
78-
58,
79-
40
76+
129,
77+
83,
78+
57,
79+
41
8080
}));
8181

8282
container.Measure(new Size(300, ReferenceHeight));
@@ -86,10 +86,10 @@ public void With_Many_Tab()
8686

8787
Assert.That(childrenWidths, Is.EquivalentTo(new[]
8888
{
89-
126,
90-
82,
91-
58,
92-
40
89+
129,
90+
83,
91+
57,
92+
41
9393
}));
9494

9595
container.Measure(new Size(299, ReferenceHeight));
@@ -99,10 +99,10 @@ public void With_Many_Tab()
9999

100100
Assert.That(childrenWidths, Is.EquivalentTo(new[]
101101
{
102-
124,
103-
80,
104-
57,
105-
39
102+
126,
103+
81,
104+
55,
105+
38
106106
}));
107107

108108
container.Measure(new Size(290, ReferenceHeight));
@@ -112,10 +112,10 @@ public void With_Many_Tab()
112112

113113
Assert.That(childrenWidths, Is.EquivalentTo(new[]
114114
{
115-
124,
116-
80,
117-
56,
118-
39
115+
125,
116+
81,
117+
55,
118+
38
119119
}));
120120

121121
container.Measure(new Size(289, ReferenceHeight));
@@ -125,62 +125,62 @@ public void With_Many_Tab()
125125

126126
Assert.That(childrenWidths, Is.EquivalentTo(new[]
127127
{
128-
122,
128+
123,
129129
78,
130-
54,
130+
53,
131131
36
132132
}));
133133

134134
container.Measure(new Size(230, ReferenceHeight));
135135

136136
Assert.That(container.DesiredSize, Is.EqualTo(new Size(230, ReferenceHeight)));
137-
Assert.That(container.ExtentWidth, Is.EqualTo(274));
137+
Assert.That(container.ExtentWidth, Is.EqualTo(285));
138138

139139
Assert.That(childrenWidths, Is.EquivalentTo(new[]
140140
{
141-
118,
142-
74,
143-
50,
144-
32
141+
123,
142+
77,
143+
51,
144+
34
145145
}));
146146

147147
container.Measure(new Size(150, ReferenceHeight));
148148

149149
Assert.That(container.DesiredSize, Is.EqualTo(new Size(150, ReferenceHeight)));
150-
Assert.That(container.ExtentWidth, Is.EqualTo(274));
150+
Assert.That(container.ExtentWidth, Is.EqualTo(285));
151151

152152
Assert.That(childrenWidths, Is.EquivalentTo(new[]
153153
{
154-
118,
155-
74,
156-
50,
157-
32
154+
123,
155+
77,
156+
51,
157+
34
158158
}));
159159

160160
container.Measure(new Size(130, ReferenceHeight));
161161

162162
Assert.That(container.DesiredSize, Is.EqualTo(new Size(130, ReferenceHeight)));
163-
Assert.That(container.ExtentWidth, Is.EqualTo(274));
163+
Assert.That(container.ExtentWidth, Is.EqualTo(285));
164164

165165
Assert.That(childrenWidths, Is.EquivalentTo(new[]
166166
{
167-
118,
168-
74,
169-
50,
170-
32
167+
123,
168+
77,
169+
51,
170+
34
171171
}));
172172

173173
container.Measure(new Size(120, ReferenceHeight));
174174

175175
Assert.That(container.DesiredSize, Is.EqualTo(new Size(120, ReferenceHeight)));
176-
Assert.That(container.ExtentWidth, Is.EqualTo(274));
176+
Assert.That(container.ExtentWidth, Is.EqualTo(282));
177177

178178
Assert.That(childrenWidths, Is.EquivalentTo(new[]
179179
{
180-
118,
181-
74,
182-
50,
183-
32
180+
120,
181+
77,
182+
51,
183+
34
184184
}));
185185
}
186186
}

0 commit comments

Comments
 (0)