Xamarin.Forms/Xamarin.Forms.Core.UnitTests
E.Z. Hart 28948d7ef7 VisualStateManager phase 1 (#1405)
* Port from old VSM branch

* Add PS and notes

* Checkpoint: entry text UWP mostly working, need to check on background colors

* Remove irrelevant samples from the EntryDisabledStatesGallery
Make Background color work on UWP Entry with VSM

* Add platform specific for disabling legacy colors on Android

* Add OnPlatform example to visual state manager gallery

* Add example OnIdiom in Visual State Manager

* Add platform specific for disabling legacy color mode on iOS Entry

* Add gallery for Button disabled states
Handling legacy colors for Buttons on Android

* Split out disabled states galleries; disabled legacy handling for Picker

* TimePicker disabled states

* DatePicker color management on Android

* Color management for pre-AppCompat button

* Button legacy color handling on iOS

* Consolidate Platform Specifics;
legacy colors working for iOS Picker and DatePicker

* Fix broken search bar color management
SearchBar color management working with VSM
Add test page for SearchBar disabled color management
Consolidate legacy color management check code into extension method on Android

* Legacy color management for Editor on Android

* Fix legacy color stuff for SearchBar Cancel button on iOS

* C# 7 cleanup

* Add colors for Cancel Button

* Make sure VisualStateGroup collections set by styles are distinct objects

* Validation example

* Make common state names consts

* Make the Windows VSM and Forms VSM work together

* Update galleries for Windows

* Make new methods internal

* Split gallery classes and add more explanation to validation example

* Remove debugging statements

* Add a quick code-only example

* Make legacy color management work for fast button renderer

* Remove old TODO

* Update docs

* Move RunTimeNamePropertyAttribute to Xamarin.Forms.Xaml namespace

* Verify XF namespace when looking for VisualState

* Use nameof

* Make common states constants public

* Cast VisualElement directly so it crashes if the property is set on the wrong type

* Collection -> IList for VisualStateManager

* Setting fromStyle to true

* Remove extraneous `private set`

* Seal VSM classes

* Use constraints instead of ==

* Add teardown method; use constraints rather than ==

* Remove null checking with GetVisualStateGroups

* Don't explicitly initialize collections on elements

* Actually, turns out that fromStyle:false *was* correct

* Direct casts

* Use GetIsDefault check in GoToState

* Validate parents in FindTypeForVisualState

* Validate group and state names on Add

* Fixed check for setter collection

* Fix issues with "duplicate" names when VisualStateGroups declared directly on VisualElements

* Add gallery example for VSGs directly on VisualElements

* Update docs

* Fix bug where initial TextColor isn't set for FastRenderer Button

* Move to explicit VisualStateGroupList in Setter

* Fix return types for unit tests

* Using string.CompareOrdinal in GetState

* Update docs

* Add check for null/empty VisualState Name properties
2018-01-05 09:11:51 +00:00
..
Images Initial import 2016-03-22 16:13:41 -07:00
Properties Initial import 2016-03-22 16:13:41 -07:00
StyleSheets Stylesheets (#1207) 2017-12-20 10:47:50 +01:00
AbsoluteLayoutTests.cs [Test] Make sure we always test with different Cultures (#1219) 2017-10-24 10:41:33 +02:00
AcceleratorTypeConverterUnitTests.cs [Core,MacOS]Desktop support (#1126) 2017-10-02 18:19:26 +01:00
AcceleratorUnitTests.cs [Core,MacOS]Desktop support (#1126) 2017-10-02 18:19:26 +01:00
AnimatableKeyTests.cs Initial import 2016-03-22 16:13:41 -07:00
AnimationTests.cs [C] reset children animation on repeat (#974) 2017-06-08 20:38:45 +02:00
AppLinkEntryTests.cs [Android] Implement the AppIndexProvider on non-AppCompact, fix KeyValues on AppLinkEntry (#166) 2016-05-25 14:50:21 +01:00
BaseTestFixture.cs [Test] Make sure we always test with different Cultures (#1219) 2017-10-24 10:41:33 +02:00
BehaviorTest.cs Remove VisualElement finalizer (#918) 2017-05-16 10:27:41 -07:00
BindableObjectExtensionTests.cs Initial import 2016-03-22 16:13:41 -07:00
BindableObjectUnitTests.cs [C] Use ReferenceEquals to compare BindingContext (#1150) 2017-09-21 10:45:49 -07:00
BindablePropertyUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
BindingBaseUnitTests.cs [Tests] make sure the test pass even if the locale is wrongly implemented on the platform (#1292) 2017-11-20 09:46:50 +01:00
BindingExpressionTests.cs Initial import 2016-03-22 16:13:41 -07:00
BindingTests.cs Initial import 2016-03-22 16:13:41 -07:00
BindingTypeConverterTests.cs Initial import 2016-03-22 16:13:41 -07:00
BindingUnitTests.cs [C] bind to ValueTuples (#1317) 2017-12-11 22:32:46 +01:00
BoxViewUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
ButtonUnitTest.cs Add pressed and released events to Button (#446) 2017-02-02 18:23:31 +00:00
CarouselPageTests.cs Initial import 2016-03-22 16:13:41 -07:00
CellTests.cs Implicit impl of controller ifaces (#807) 2017-04-11 19:02:06 +01:00
ColorUnitTests.cs Add implicit color conversion to .NET Standard's System.Drawing.Color (#1359) 2017-12-21 10:02:54 +01:00
CommandSourceTests.cs Initial import 2016-03-22 16:13:41 -07:00
CommandTests.cs Don't run Command CanExecute on incorrect inherited binding context type (#572) 2016-12-01 22:15:17 +01:00
ContentFormUnitTests.cs [Core] Fix internal children clear logic (#820) 2017-03-20 12:06:20 +00:00
ContentViewUnitTest.cs [Core] Fix internal children clear logic (#820) 2017-03-20 12:06:20 +00:00
ContraintTypeConverterTests.cs Initial import 2016-03-22 16:13:41 -07:00
ControlTemplateTests.cs Prep Page for removal of InternalsVisibleTo (#150) 2016-06-16 16:45:09 +01:00
DataTemplateSelectorTests.cs Add iOS prototypical cell cache for LV RowHeight calcs (#1143) 2017-09-16 15:10:04 +01:00
DataTemplateTests.cs Initial import 2016-03-22 16:13:41 -07:00
DataTriggerTests.cs Xamlc compile data triggers (#648) 2016-12-23 10:21:30 +01:00
DatePickerUnitTest.cs [Tests] Add nunit test adapter (#1038) 2017-07-06 23:29:03 +01:00
DependencyServiceTests.cs Initial import 2016-03-22 16:13:41 -07:00
DistanceTests.cs Initial import 2016-03-22 16:13:41 -07:00
DynamicBindingContextTests.cs Initial import 2016-03-22 16:13:41 -07:00
DynamicResourceTests.cs Fix bz56030; DynamicResource overriding (#924) 2017-05-26 12:31:55 +01:00
EasingTests.cs Initial import 2016-03-22 16:13:41 -07:00
EditorTests.cs Initial import 2016-03-22 16:13:41 -07:00
EffectTests.cs Initial import 2016-03-22 16:13:41 -07:00
EffectiveFlowDirectionExtensions.cs [All] Basic Right-To-Left Support (#1222) 2017-11-09 14:31:15 +00:00
ElementTests.cs Prep Page for removal of InternalsVisibleTo (#150) 2016-06-16 16:45:09 +01:00
EntryCellTests.cs Initial import 2016-03-22 16:13:41 -07:00
EntryUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
EventTriggerTest.cs Initial import 2016-03-22 16:13:41 -07:00
FlowDirectionTests.cs [All] Basic Right-To-Left Support (#1222) 2017-11-09 14:31:15 +00:00
FluentTests.cs Initial import 2016-03-22 16:13:41 -07:00
FontUnitTests.cs [Test] Make sure we always test with different Cultures (#1219) 2017-10-24 10:41:33 +02:00
FormattedStringTests.cs Initial import 2016-03-22 16:13:41 -07:00
FrameUnitTests.cs [C] use defaultValueCreator to set Frame default Padding (#943) 2017-06-01 09:53:11 +02:00
GeocoderUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
GridLengthTypeConverterTests.cs Initial import 2016-03-22 16:13:41 -07:00
GridTests.cs Breaking; Make Grid.AddHz/Vt span ortho dim (#984) 2017-06-22 18:36:52 -04:00
GroupViewUnitTests.cs Prep Page for removal of InternalsVisibleTo (#150) 2016-06-16 16:45:09 +01:00
ImageSourceTests.cs Initial import 2016-03-22 16:13:41 -07:00
ImageTests.cs Implicit impl of controller ifaces (#807) 2017-04-11 19:02:06 +01:00
KeyboardTests.cs Initial import 2016-03-22 16:13:41 -07:00
LabelTests.cs Stylesheets (#1207) 2017-12-20 10:47:50 +01:00
LayoutChildIntoBoundingRegionTests.cs [All] Basic Right-To-Left Support (#1222) 2017-11-09 14:31:15 +00:00
LayoutOptionsUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
ListProxyTests.cs Update ListProxyTest.WeakToWeak so it works in Release mode (#866) 2017-04-13 15:40:05 +01:00
ListViewTests.cs [Win] Remove Windows 8.1 platforms **Breaking change** (#1267) 2017-11-27 15:14:01 +00:00
MapSpanTests.cs Initial import 2016-03-22 16:13:41 -07:00
MapTests.cs Remove InternalsVisibleTo from Maps (#1019) 2017-07-24 16:23:14 -04:00
MarginTests.cs Initial import 2016-03-22 16:13:41 -07:00
MasterDetailFormUnitTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
MenuItemTests.cs [Core,MacOS]Desktop support (#1126) 2017-10-02 18:19:26 +01:00
MenuUnitTests.cs [Core,MacOS]Desktop support (#1126) 2017-10-02 18:19:26 +01:00
MessagingCenterTests.cs Make MessagingCenter testable (#723) 2017-01-31 13:10:28 +00:00
MockPlatformServices.cs [All] Move to netstandard2.0 **Breaking change** (#1306) 2017-11-29 17:37:06 +00:00
MockViewModel.cs [XamlC] TypedBindings, some tests, a compiler, ... (#489) 2016-11-15 11:39:48 -08:00
MotionTests.cs Make core Ticker abstract and public (#116) 2016-04-25 15:57:44 -04:00
MultiPageTests.cs Prep Page for removal of InternalsVisibleTo (#150) 2016-06-16 16:45:09 +01:00
MultiTriggerTests.cs Xamlc compile data triggers (#648) 2016-12-23 10:21:30 +01:00
NativeBindingTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
NavigationMenuUnitTests.cs Implicit impl of controller ifaces (#807) 2017-04-11 19:02:06 +01:00
NavigationModelTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
NavigationProxyTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
NavigationUnitTest.cs [Core] Added RootPage to NavigationPage (#464) 2017-02-02 15:35:23 +00:00
NotifiedPropertiesTests.cs Lazy creation of ResourceDictionaries (#1295) 2017-11-22 12:59:55 +01:00
NotifyCollectionChangedEventArgsExtensionsTests.cs Prep Cell & friends for removal of InternalsVisibleTo (#142) 2016-06-17 11:10:18 +01:00
ObservableWrapperTests.cs Initial import 2016-03-22 16:13:41 -07:00
OpenGLViewUnitTests.cs Implicit impl of controller ifaces (#807) 2017-04-11 19:02:06 +01:00
PageTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
PanGestureRecognizerUnitTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
PickerTests.cs [C] Use a Binding for ItemsSource object selection 2016-11-16 12:03:13 -08:00
PinTests.cs Initial import 2016-03-22 16:13:41 -07:00
PinchGestureRecognizerTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
PlatformSpecificsTests.cs Platform Specifics (#301) 2016-08-30 10:46:14 -07:00
PointTests.cs Initial import 2016-03-22 16:13:41 -07:00
PositionTests.cs Initial import 2016-03-22 16:13:41 -07:00
ProgressBarTests.cs Make core Ticker abstract and public (#116) 2016-04-25 15:57:44 -04:00
RectangleUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
RegistrarUnitTests.cs [All] Use IReflectableType when accessing the Registrar (#1006) 2017-09-28 16:35:28 +02:00
RelativeLayoutTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
ResourceDictionaryTests.cs [C] MergedRD: new tests and minor fixes 2017-09-22 13:27:47 +02:00
ScrollViewUnitTests.cs [Android] ScrollView should send correct ScrollX and ScrollY (#394) 2016-12-06 12:07:29 +00:00
SearchBarUnitTests.cs Prep SearchBar for removal of InternalsVisibleTo (#137) 2016-05-02 14:55:43 -06:00
SizeTests.cs Initial import 2016-03-22 16:13:41 -07:00
SliderUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
StackLayoutUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
StepperUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
StyleTests.cs Fix 54334 (#855) 2017-04-06 14:13:49 -07:00
SwitchCellTests.cs Initial import 2016-03-22 16:13:41 -07:00
SwitchUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
TabbedFormUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
TableModelTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
TableRootUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
TableSectionTests.cs Initial import 2016-03-22 16:13:41 -07:00
TableViewUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
TapGestureRecognizerTests.cs Initial import 2016-03-22 16:13:41 -07:00
TemplatedItemsListTests.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
TemplatedPageUnitTests.cs [Core] Fix internal children clear logic (#820) 2017-03-20 12:06:20 +00:00
TemplatedViewUnitTests.cs [C] reset the BindingContext on template change (#998) 2017-06-21 10:32:08 +02:00
TextCellTests.cs Initial import 2016-03-22 16:13:41 -07:00
ThicknessTests.cs Initial import 2016-03-22 16:13:41 -07:00
TimePickerUnitTest.cs Initial import 2016-03-22 16:13:41 -07:00
ToolbarItemTests.cs Initial import 2016-03-22 16:13:41 -07:00
ToolbarTrackerTests.cs Prep Cell & friends for removal of InternalsVisibleTo (#142) 2016-06-17 11:10:18 +01:00
TriggerTests.cs [test] passing test for 32896 2017-06-21 15:31:44 +02:00
TypeUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
TypedBindingUnitTests.cs [Test] Make sure we always test with different Cultures (#1219) 2017-10-24 10:41:33 +02:00
UnitPlatform.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
UriImageSourceTests.cs Initial import 2016-03-22 16:13:41 -07:00
ViewCellTests.cs Initial import 2016-03-22 16:13:41 -07:00
ViewUnitTests.cs [Win] Remove Windows 8.1 platforms **Breaking change** (#1267) 2017-11-27 15:14:01 +00:00
VisualStateManagerTests.cs VisualStateManager phase 1 (#1405) 2018-01-05 09:11:51 +00:00
WeakEventManagerTests.cs Unit tests for the PCL WeakEventManager (#280) 2016-08-10 13:51:33 +02:00
WebViewUnitTests.cs Initial import 2016-03-22 16:13:41 -07:00
Xamarin.Forms.Core.UnitTests.csproj VisualStateManager phase 1 (#1405) 2018-01-05 09:11:51 +00:00
packages.config [Tests] Add nunit test adapter (#1038) 2017-07-06 23:29:03 +01:00