.NET Standard 2.0
dotnet add package Xamarin.Forms.Mocks --version
NuGet\Install-Package Xamarin.Forms.Mocks -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#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=

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 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.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 net481
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 (10)

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 800,942 7/7/2020 5,530 5/15/2020 51,852 4/30/2020 76,954 2/9/2020 132,142 6/21/2019 78,577 3/20/2019
3.5.0 13,398 2/15/2019 117,041 5/10/2018 3,624 3/23/2018 23,699 2/11/2018 3,403 2/2/2018 24,733 1/6/2018 20,445 11/20/2017 15,925 9/29/2017 809 8/8/2017 18,017 6/27/2017 2,867 5/4/2017 1,036 4/15/2017 940 4/15/2017 1,570 1/18/2017 1,005 12/28/2016

Upgraded to netstandard2.0