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 and Polyglot Notebooks. 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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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 1,349,513 7/7/2020 6,986 5/15/2020 56,635 4/30/2020 85,778 2/9/2020 136,433 6/21/2019 80,603 3/20/2019
3.5.0 14,046 2/15/2019 143,754 5/10/2018 4,176 3/23/2018 27,506 2/11/2018 4,003 2/2/2018 26,850 1/6/2018 22,409 11/20/2017 16,766 9/29/2017 1,352 8/8/2017 18,645 6/27/2017 3,452 5/4/2017 1,638 4/15/2017 1,553 4/15/2017 2,185 1/18/2017 1,611 12/28/2016

Upgraded to netstandard2.0