Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

598 Commits
598 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify.CommunityToolkit.Mvvm

Discussions Build status NuGet Status

Extends Verify to allow verification of CommunityToolkit.Mvvm.

Sponsors

Entity Framework Extensions

Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.

Entity Framework Extensions

Developed using JetBrains IDEs

JetBrains logo.

NuGet

Usage

[ModuleInitializer]
public static void Initialize() =>
    VerifyCommunityToolkitMvvm.Initialize();

snippet source | anchor

RelayCommand

[Fact]
public Task RelayCommand()
{
    var content = new RelayCommand(ActionMethod, CanExecuteMethod);
    return Verify(content);
}

snippet source | anchor

Results in:

{
  Execute: Tests.ActionMethod,
  CanExecute: Tests.CanExecuteMethod
}

snippet source | anchor

AsyncRelayCommand

[Fact]
public Task AsyncRelayCommand()
{
    var content = new AsyncRelayCommand(ActionMethodAsync, CanExecuteMethod);
    return Verify(content);
}

snippet source | anchor

Results in:

{
  Execute: Tests.ActionMethodAsync,
  CanExecute: Tests.CanExecuteMethod
}

snippet source | anchor

About

Extends Verify to allow verification of CommunityToolkit.Mvvm.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Sponsor this project

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.