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

awesome-inc/Caliburn.Micro.TestingHelpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
whitesource-bolt-for-github[bot]
Dec 6, 2018
04ae634 · Dec 6, 2018

History

25 Commits
Jan 21, 2016
Dec 29, 2015
Dec 11, 2015
Dec 6, 2018
Dec 29, 2015
Dec 16, 2015
Dec 11, 2015
Jan 21, 2016
Dec 16, 2015
Dec 29, 2015
Dec 29, 2015
Dec 16, 2015
Dec 29, 2015
Jan 21, 2016

Repository files navigation

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