Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/Mono.Android/Test/Android.Graphics/GraphicsTest.cs
Original file line number Diff line number Diff line change
@@ -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.");
}
}
}
6 changes: 5 additions & 1 deletion src/Mono.Android/Test/Mono.Android-Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Android.App\ApplicationTest.cs" />
<Compile Include="Android.Content\IntentTest.cs" />
<Compile Include="Android.Graphics\GraphicsTest.cs" />
<Compile Include="Android.Runtime\CharSequenceTest.cs" />
<Compile Include="Android.Runtime\JavaCollectionTest.cs" />
<Compile Include="Android.Runtime\JnienvArrayMarshaling.cs" />
Expand Down Expand Up @@ -101,6 +102,9 @@
<AndroidResource Include="Resources\xml\XmlReaderResourceParser.xml" />
<AndroidResource Include="Resources\layout\FragmentFixup.axml" />
<AndroidResource Include="Resources\layout\Main.axml" />
<AndroidResource Include="..\..\Xamarin.Android.Build.Tasks\Tests\Xamarin.ProjectTools\Resources\Base\Image.9.png">
<Link>Resources\Drawable\Image.9.png</Link>
</AndroidResource>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Import Project="Mono.Android-Tests.targets" />
Expand All @@ -126,4 +130,4 @@
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
</Project>
</Project>