32 references to DefaultOffset
System.Windows.Forms.Design.Tests (32)
System\Windows\Forms\Design\Behavior\SnapLineTests.cs (32)
18
SnapLine snapLine = new(SnapLineType.Baseline,
DefaultOffset
);
21
Assert.Equal(
DefaultOffset
, snapLine.Offset);
29
SnapLine snapLine = new(SnapLineType.Baseline,
DefaultOffset
, DefaultFilter);
32
Assert.Equal(
DefaultOffset
, snapLine.Offset);
40
SnapLine snapLine = new(SnapLineType.Baseline,
DefaultOffset
, DefaultPriority);
43
Assert.Equal(
DefaultOffset
, snapLine.Offset);
51
SnapLine snapLine = new(SnapLineType.Baseline,
DefaultOffset
, DefaultFilter, DefaultPriority);
54
Assert.Equal(
DefaultOffset
, snapLine.Offset);
69
SnapLine snapLine = new(type,
DefaultOffset
, DefaultFilter, DefaultPriority);
84
SnapLine snapLine = new(type,
DefaultOffset
, DefaultFilter, DefaultPriority);
101
SnapLine snapLine = new(type,
DefaultOffset
, DefaultFilter, DefaultPriority);
107
[InlineData(
DefaultOffset
, 10,
DefaultOffset
+ 10)]
108
[InlineData(
DefaultOffset
, -10,
DefaultOffset
- 10)]
109
[InlineData(
DefaultOffset
, int.MaxValue, /* overflown */-2147483526)]
110
[InlineData(-
DefaultOffset
, int.MinValue, /* overflown */2147483525)]
122
SnapLine snapLine1 = new(SnapLineType.Top,
DefaultOffset
, DefaultFilter, DefaultPriority);
123
SnapLine snapLine2 = new(SnapLineType.Baseline,
DefaultOffset
, DefaultFilter, DefaultPriority);
131
SnapLine snapLine1 = new(SnapLineType.Top,
DefaultOffset
, null, DefaultPriority);
132
SnapLine snapLine2 = new(SnapLineType.Top,
DefaultOffset
, null, SnapLinePriority.Low);
140
SnapLine snapLine1 = new(SnapLineType.Top,
DefaultOffset
, null, DefaultPriority);
141
SnapLine snapLine2 = new(SnapLineType.Top,
DefaultOffset
, DefaultFilter, SnapLinePriority.Low);
176
SnapLine snapLine1 = new(SnapLineType.Top,
DefaultOffset
, snapLine1Filter, DefaultPriority);
177
SnapLine snapLine2 = new(SnapLineType.Top,
DefaultOffset
, snapLine2Filter, SnapLinePriority.Low);
206
SnapLine snapLine1 = new(SnapLineType.Top,
DefaultOffset
, snapLine1Filter, DefaultPriority);
207
SnapLine snapLine2 = new(SnapLineType.Top,
DefaultOffset
, snapLine2Filter, SnapLinePriority.Low);
215
SnapLine snapLine1 = new(SnapLineType.Top,
DefaultOffset
, "custom filter", DefaultPriority);
216
SnapLine snapLine2 = new(SnapLineType.Top,
DefaultOffset
, "custom filter", SnapLinePriority.Low);
224
SnapLine snapLine1 = new(SnapLineType.Top,
DefaultOffset
, "custom filter", DefaultPriority);
225
SnapLine snapLine2 = new(SnapLineType.Top,
DefaultOffset
, "another filter", SnapLinePriority.Low);
235
SnapLine snapLine = new(SnapLineType.Baseline,
DefaultOffset
, filter, DefaultPriority);