/biz.dfch.CS.Testing

Module with

Primary LanguageC#Apache License 2.0Apache-2.0

biz.dfch.CS.Testing

Build Status License Version

Assembly: biz.dfch.CS.Testing.dll

d-fens GmbH, General-Guisan-Strasse 6, CH-6300 Zug, Switzerland

Download

Description

This project containts a collection of utility classes to facilitate testing. Formerly this functionality has been included in biz.dfch.CS.System.Utilities, but due to the dependency on some VisualStudio assemblies this has been extracted and separated.

  • ExpectContractFailure attribute to assert Code Contract exceptions

Telerik JustMock has to be licensed separately. Only the code samples (source code files) are licensed under the Apache 2.0 license. The Telerik JustMock software has to be licensed separately. See the NOTICE file for more information about this.

See also Releases and Tags

2.1.1 - 20181008

FEATURES

  • Version of target .NET Framework downgraded to 4.7

2.1.0 - 20180917

FEATURES

  • Implemented PsCmdletAssert2
  • Marked PsCmdletAssert as obsolete
  • Support for session state variables

2.0.2 - 20180913

BUGS

  • Missing dependencies specified in nuspec file

2.0.0 - 20180912

FEATURES

  • Version of target .NET Framework updated to 4.7.1
  • Compatibility with VS2017 ensured
  • Package Microsoft.PowerShell.5.ReferenceAssemblies updated

1.5.0 - 20170413

FEATURES

PsCmdletAssert

  • Invoke overloads added to allow mocking by passing objects cmdlet parameters

1.4.0 - 20161130

FEATURES

PsCmdAssert

  • added support for multiple PsCmdlets
  • added support for script block initialisation code to be executed before Cmdlet invocation

ExpectException

  • added ExpectExceptionAttribute to validate exception messages

1.3.0 - 20161115

FEATURES

PowerShell

  • added PsCmdletAssert class for testing C# based Powershell PSCmdlets.
  • added ExpectParameterBindingValidationExceptionAttribute to catch ParameterBindingValidationExceptions
  • added ExpectParameterBindingExceptionAttribute to catch ParameterBindingExceptions
  • added ExpectAssertFailedExceptionAttribute to catch AssertFailedExceptions
  • added PsCmdletAssert.HasAlias to assert defined aliases on Cmdlets
  • added PsCmdletAssert.HasOutputType to assert defined output types on Cmdlets

C#

  • changed ExpectContractFailureAttribute to support regex based Message validation

1.2.1 - 20161114

1.1.0 - 20161010

1.0.0 - 20161007

  • Initial release

TeamCity Logo

Built and released with TeamCity