Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

Latest commit

 

History

History
38 lines (22 loc) · 1.76 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.76 KB

Build status NuGet Nuget NuGet Issue Stats Coverage Status

Caliburn.Micro.TestingHelpers

The caliburn micro testing helpers are an extension to provide additional functionality for testing an WPFapp with Caliburn.Micro.

Installation

Install the package with the nuget package manager

install-package Caliburn.Micro.TestingHelpers

TestWithPlatformProvider

// this uses NEdifis creation context
var ctx = new ContextFor<DefaultSearchViewModel>();

var sut = ctx.BuildSut();

var closeCalled = false;
sut.TestWithPlatformProvider(
	platformProvider => platformProvider.CloseActionFor = (vm, views, result) => closeCalled = true,
	x => x.DoOpenSelected());

Planned

The following features are prototyped and will be implemented soon.

  • Screenshot helper - Creates screenshots based on a caliburn View/ViewModel