diff --git a/src/Mono.Android/Test/Android.Graphics/GraphicsTest.cs b/src/Mono.Android/Test/Android.Graphics/GraphicsTest.cs new file mode 100644 index 00000000000..e05720869af --- /dev/null +++ b/src/Mono.Android/Test/Android.Graphics/GraphicsTest.cs @@ -0,0 +1,20 @@ +using System; + +using Android.Content; + +using NUnit.Framework; + +namespace Android.GraphicsTests +{ + [TestFixture] + public class GraphicTest + { + [Test] + public void NinePatch () + { + var d = Android.App.Application.Context.Resources.GetDrawable (Xamarin.Android.RuntimeTests.Resource.Drawable.image); + Assert.IsNotNull (d, "An image should have been retrieved."); + Assert.IsNotNull (d as Android.Graphics.Drawables.NinePatchDrawable, "The image should be a NinePatchDrawable."); + } + } +} diff --git a/src/Mono.Android/Test/Mono.Android-Tests.csproj b/src/Mono.Android/Test/Mono.Android-Tests.csproj index e6e36efd7e7..f67d5626876 100644 --- a/src/Mono.Android/Test/Mono.Android-Tests.csproj +++ b/src/Mono.Android/Test/Mono.Android-Tests.csproj @@ -57,6 +57,7 @@ + @@ -101,6 +102,9 @@ + + Resources\Drawable\Image.9.png + @@ -126,4 +130,4 @@ False - \ No newline at end of file +