.NET Standard 2.0
Install-Package Xamarin.Forms.Mocks -Version
dotnet add package Xamarin.Forms.Mocks --version
<PackageReference Include="Xamarin.Forms.Mocks" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.Forms.Mocks --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xamarin.Forms.Mocks,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin.Forms.Mocks as a Cake Addin
#addin nuget:?package=Xamarin.Forms.Mocks&version=

// Install Xamarin.Forms.Mocks as a Cake Tool
#tool nuget:?package=Xamarin.Forms.Mocks&version=
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Library for running Xamarin.Forms inside of unit tests

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Xamarin.Forms.Mocks:

Package Downloads

Library to write NUnit Integration Tests for Xamarin.Forms


a Xamarin forms framework base on mvvm, this package for UnitTest project


A testing library to make components testing for Xamarin.Forms easier, inspired by Testing Library, Flutter's Widget Testing and others.

GitHub repositories (8)

Showing the top 5 popular GitHub repositories that depend on Xamarin.Forms.Mocks:

Repository Stars
An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..
Tailwind Traders Mobile
The Mobile.BuildTools makes it easier to develop code bases in a clean, consistent, secure, and configurable way. Determine at Build which environment your app needs to run on, and what Client Secrets it should have. Plus many more amazing features!
Version Downloads Last updated 568,048 7/7/2020 5,298 5/15/2020 50,412 4/30/2020 72,421 2/9/2020 130,483 6/21/2019 77,623 3/20/2019
3.5.0 13,204 2/15/2019 111,695 5/10/2018 3,591 3/23/2018 22,909 2/11/2018 3,287 2/2/2018 23,634 1/6/2018 19,731 11/20/2017 15,592 9/29/2017 775 8/8/2017 17,904 6/27/2017 2,760 5/4/2017 930 4/15/2017 831 4/15/2017 1,462 1/18/2017 902 12/28/2016

Upgraded to netstandard2.0