using System using Xamarin Forms using NUnit Framework using DevExpres

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using Xamarin.Forms;
using NUnit.Framework;
using DevExpress.XamarinForms.Core.Tests;
using DevExpress.XamarinForms.Grid.Internal;
namespace DevExpress.XamarinForms.Grid.Tests {
[TestFixture]
public class ExtendedScrollViewTests : BaseTestFixture, IScrollViewDelegate {
Point expectedOffset;
Size expectedSize;
ExtendedScrollView scrollView;
Point delegateOffset;
Size delegateSize;
#region IScrollViewDelegate
void IScrollViewDelegate.SetOffset(Point offset) {
delegateOffset = offset;
}
void IScrollViewDelegate.SetSize(Size size) {
delegateSize = size;
}
#endregion
[SetUp]
public void SetUp() {
expectedOffset = DXRandomizer.GenPoint();
expectedSize = DXRandomizer.GenSize();
scrollView = new ExtendedScrollView();
scrollView.Delegate = this;
}
}
}