Пример #1
0
        public async Task ThumbColorUpdatesCorrectly()
        {
            var switchStub = new SwitchStub()
            {
                IsToggled = true
            };

            await ValidateThumbColor(switchStub, Color.Red, () => switchStub.ThumbColor = Color.Red);
        }
Пример #2
0
        public async Task IsToggledInitializesCorrectly()
        {
            var switchStub = new SwitchStub()
            {
                IsToggled = true
            };

            await ValidatePropertyInitValue(switchStub, () => switchStub.IsToggled, GetNativeIsChecked, switchStub.IsToggled);
        }
Пример #3
0
        public async Task ThumbColorInitializesCorrectly()
        {
            var switchStub = new SwitchStub()
            {
                IsToggled  = true,
                ThumbColor = Color.Blue
            };

            await ValidateThumbColor(switchStub, Color.Blue);
        }
Пример #4
0
        public async Task TrackColorInitializesCorrectly(bool isToggled)
        {
            var switchStub = new SwitchStub()
            {
                IsToggled  = isToggled,
                TrackColor = Color.Red
            };

            await ValidateTrackColor(switchStub, Color.Red);
        }