summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.UnitTests/RegistrarUnitTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core.UnitTests/RegistrarUnitTests.cs')
-rw-r--r--Xamarin.Forms.Core.UnitTests/RegistrarUnitTests.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/Xamarin.Forms.Core.UnitTests/RegistrarUnitTests.cs b/Xamarin.Forms.Core.UnitTests/RegistrarUnitTests.cs
index 9758eaf..c477f02 100644
--- a/Xamarin.Forms.Core.UnitTests/RegistrarUnitTests.cs
+++ b/Xamarin.Forms.Core.UnitTests/RegistrarUnitTests.cs
@@ -29,7 +29,7 @@ namespace Xamarin.Forms.Core.UnitTests
{
base.Setup ();
Device.PlatformServices = new MockPlatformServices ();
- Registrar.RegisterAll (new [] {
+ Internals.Registrar.RegisterAll (new [] {
typeof (TestHandlerAttribute)
});
@@ -45,7 +45,7 @@ namespace Xamarin.Forms.Core.UnitTests
[Test]
public void GetButtonHandler ()
{
- var buttonTarget = Registrar.Registered.GetHandler<ButtonTarget> (typeof (Button));
+ var buttonTarget = Internals.Registrar.Registered.GetHandler<ButtonTarget> (typeof (Button));
Assert.IsNotNull (buttonTarget);
Assert.That (buttonTarget, Is.InstanceOf<ButtonTarget>());
}
@@ -53,7 +53,7 @@ namespace Xamarin.Forms.Core.UnitTests
[Test]
public void GetSliderHandler()
{
- var sliderTarget = Registrar.Registered.GetHandler<SliderTarget> (typeof (Slider));
+ var sliderTarget = Internals.Registrar.Registered.GetHandler<SliderTarget> (typeof (Slider));
Assert.IsNotNull (sliderTarget);
Assert.That (sliderTarget, Is.InstanceOf<SliderTarget> ());
}
@@ -76,7 +76,7 @@ namespace Xamarin.Forms.Core.UnitTests
[Test]
public void TestConstructor ()
{
- var registrar = new Registrar<MockRenderer> ();
+ var registrar = new Internals.Registrar<MockRenderer> ();
var renderer = registrar.GetHandler (typeof (Button));
@@ -86,7 +86,7 @@ namespace Xamarin.Forms.Core.UnitTests
[Test]
public void TestGetRendererForKnownClass ()
{
- var registrar = new Registrar<MockRenderer> ();
+ var registrar = new Internals.Registrar<MockRenderer> ();
registrar.Register (typeof(View), typeof(MockRenderer));
@@ -98,7 +98,7 @@ namespace Xamarin.Forms.Core.UnitTests
[Test]
public void TestGetRendererForUnknownSubclass ()
{
- var registrar = new Registrar<MockRenderer> ();
+ var registrar = new Internals.Registrar<MockRenderer> ();
registrar.Register (typeof (View), typeof (MockRenderer));
@@ -110,7 +110,7 @@ namespace Xamarin.Forms.Core.UnitTests
[Test]
public void TestGetRendererWithRegisteredSubclass ()
{
- var registrar = new Registrar<MockRenderer> ();
+ var registrar = new Internals.Registrar<MockRenderer> ();
registrar.Register (typeof (View), typeof (MockRenderer));
registrar.Register (typeof (Button), typeof (ButtonMockRenderer));
@@ -126,7 +126,7 @@ namespace Xamarin.Forms.Core.UnitTests
[Test]
public void TestReplaceRenderer ()
{
- var registrar = new Registrar<MockRenderer> ();
+ var registrar = new Internals.Registrar<MockRenderer> ();
registrar.Register (typeof (View), typeof (MockRenderer));
registrar.Register (typeof (Button), typeof (ButtonMockRenderer));
@@ -140,7 +140,7 @@ namespace Xamarin.Forms.Core.UnitTests
[Test]
public void GetHandlerType()
{
- var registrar = new Registrar<MockRenderer>();
+ var registrar = new Internals.Registrar<MockRenderer>();
registrar.Register (typeof (View), typeof (MockRenderer));
Assert.AreEqual (typeof (MockRenderer), registrar.GetHandlerType (typeof (View)));