https://github.com/quintsys/nunit.extensions
Extensions for NUnit testing framework.
https://github.com/quintsys/nunit.extensions
Last synced: 5 months ago
JSON representation
Extensions for NUnit testing framework.
- Host: GitHub
- URL: https://github.com/quintsys/nunit.extensions
- Owner: quintsys
- License: apache-2.0
- Created: 2014-05-14T13:50:07.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-14T17:05:38.000Z (about 12 years ago)
- Last Synced: 2025-02-24T04:37:26.752Z (over 1 year ago)
- Size: 246 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Quintsys.NUnit.Extensions
========================
Extensions for NUnit testing framework.
Installation
------------
To install Quintsys.NUnit.Extensions, run the following command in the Package Manager Console:
PM> Install-Package Quintsys.NUnit.Extensions
Usage
-----
```
using NUnit.Framework;
using Quintsys.NUnit.Extensions;
private readonly LoginViewModel _loginViewModel = new LoginViewModel();
[Test]
public void UserName_Should_Be_Required()
{
_loginViewModel.ShouldHave(expression: x => x.UserName,
attributes: typeof (RequiredAttribute));
}
[Test]
public void UserName_Should_Have_A_Maximum_Length_Of_256_Characters()
{
_loginViewModel.ShouldHave(expression: x => x.UserName,
defaultArgumentValue: 256,
attributes: typeof (StringLengthAttribute));
}