Skip to content

Commit f0ce283

Browse files
authored
Version 1.1.0
Version 1.1.0
2 parents fb0f7b7 + c16f04a commit f0ce283

File tree

159 files changed

+168557
-133348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+168557
-133348
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<h1><img src="https://raw.githubusercontent.com/ivaylokenov/MyTested.AspNetCore.Mvc/master/tools/logo.png" align="left" alt="MyTested.AspNetCore.Mvc" width="100">&nbsp; MyTested.AspNetCore.Mvc - Fluent testing<br />&nbsp; framework for ASP.NET Core MVC</h1>
22
====================================
33

4-
MyTested.AspNetCore.Mvc is a unit testing library providing easy fluent interface to test the [ASP.NET Core MVC](https://github.com/aspnet/Mvc) framework. It is testing framework agnostic, so you can combine it with a test runner of your choice (e.g. xUnit, NUnit, etc.).
4+
MyTested.AspNetCore.Mvc is a unit testing library providing an easy fluent interface to test the [ASP.NET Core MVC](https://github.com/aspnet/Mvc) framework. It is testing framework agnostic so that you can combine it with a test runner of your choice (e.g. xUnit, NUnit, etc.).
55

6-
[![Build status](https://ci.appveyor.com/api/projects/status/3xlag3a7f87bg4on?svg=true)](https://ci.appveyor.com/project/ivaylokenov/mytested-aspnetcore-mvc) [![NuGet Version](http://img.shields.io/nuget/v/MyTested.AspNetCore.Mvc.svg?style=flat)](https://www.nuget.org/packages/MyTested.AspNetCore.Mvc/)
6+
[![Build status](https://ci.appveyor.com/api/projects/status/3xlag3a7f87bg4on?svg=true)](https://ci.appveyor.com/project/ivaylokenov/mytested-aspnetcore-mvc) [![NuGet Version](http://img.shields.io/nuget/v/MyTested.AspNetCore.Mvc.svg?style=flat)](https://www.nuget.org/packages/MyTested.AspNetCore.Mvc/) [![NuGet Badge](https://buildstats.info/nuget/MyTested.AspNetCore.Mvc)](https://www.nuget.org/packages/MyTested.AspNetCore.Mvc/)
77

88
## Getting started
99

10-
It is strongly advised to start with the [tutorial](http://docs.mytestedasp.net/tutorial/intro.html) in order to get familiar with MyTested.AspNetCore.Mvc. Additionally, you may see the [testing guide](http://docs.mytestedasp.net/guide/intro.html) or the [API reference](http://docs.mytestedasp.net/api/index.html) for full list of available features. MyTested.AspNetCore.Mvc is 100% covered by [more than 1800 unit tests](https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/tree/master/test/) and should work correctly. Almost all items in the [issues page](https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/issues) are expected future features and enhancements.
10+
It is strongly advised to start with the [tutorial](http://docs.mytestedasp.net/tutorial/intro.html) in order to get familiar with MyTested.AspNetCore.Mvc. Additionally, you may see the [testing guide](http://docs.mytestedasp.net/guide/intro.html) or the [API reference](http://docs.mytestedasp.net/api/index.html) for a full list of available features. MyTested.AspNetCore.Mvc is 100% covered by [more than 1800 unit tests](https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/tree/master/test/) and should work correctly. Almost all items in the [issues page](https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/issues) are expected future features and enhancements.
1111

1212
## Installation
1313

14-
You can install this library using NuGet into your test project (or reference it directly in your `project.json` file). Currently MyTested.AspNetCore.Mvc works with ASP.NET Core MVC 1.0.1.
14+
You can install this library using NuGet into your test project (or reference it directly in your `project.json` file). Currently MyTested.AspNetCore.Mvc is fully compatible with ASP.NET Core MVC 1.1.0 and all older versions available on the official NuGet feed.
1515

1616
Install-Package MyTested.AspNetCore.Mvc.Universe
1717

@@ -55,7 +55,7 @@ Make sure to check out the [tutorial](http://docs.mytestedasp.net/tutorial/intro
5555

5656
You can also check out the [provided samples](https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/tree/master/samples) for real-life ASP.NET Core MVC application testing.
5757

58-
The easiest way to start with MyTested.AspNetCore.Mvc is to create a `TestStartup` class at the root of the test project in order to register the dependency injection services which will be used by all test cases in the assembly. A fast solution is to inherit from the web project's `Startup` class and replace some of the services with mocked ones by using the provided extension methods.
58+
The easiest way to start with MyTested.AspNetCore.Mvc is to create a `TestStartup` class at the root of the test project in order to register the dependency injection services which will be used by all test cases in the assembly. A quick solution is to inherit from the web project's `Startup` class and replace some of the services with mocked ones by using the provided extension methods.
5959

6060
```c#
6161
namespace MyApp.Tests
@@ -101,7 +101,7 @@ namespace MyApp.Tests.Controllers
101101
}
102102
```
103103

104-
Basically, MyTested.AspNetCore.Mvc throws an unhandled exception with a friendly error message if the assertion does not pass and the test fails. The example uses [xUnit](http://xunit.github.io/) but you can use any other framework you like. See the [samples](https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/tree/master/samples) for other types of test runners and `Startup` class configurations.
104+
Basically, MyTested.AspNetCore.Mvc throws an unhandled exception with a friendly error message if the assertion does not pass and the test fails. The example uses [xUnit](http://xunit.github.io/), but you can use any other framework you like. See the [samples](https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/tree/master/samples) for other types of test runners and `Startup` class configurations.
105105

106106
## Examples
107107

@@ -194,7 +194,7 @@ MyMvc
194194

195195
// tests whether model state error exists by using lambda expression
196196
// and with specific tests for the error messages
197-
// and tests whether the action return view with the same request model
197+
// and tests whether the action returns view with the same request model
198198
MyMvc
199199
.Controller<MvcController>()
200200
.Calling(c => c.MyAction(requestWithErrors))
@@ -209,7 +209,7 @@ MyMvc
209209
.View(requestWithErrors);
210210

211211
// tests whether the action throws
212-
// with exception of certain type and with certain message
212+
// with an exception of particular type and with particular message
213213
MyMvc
214214
.Controller<MvcController>()
215215
.Calling(c => c.ActionWithException())
@@ -238,6 +238,12 @@ MyMvc
238238
.WithModelOfType<ResponseModel>();
239239
```
240240

241+
## Versioning
242+
243+
My Tested ASP.NET Core MVC follows the ASP.NET Core MVC versions with which the testing framework is fully compatible. Specifically, the *major* and the *minor* versions will be incremented only when the MVC framework has a new official release. For example, version 1.0.0 of the testing framework will be fully compatible with ASP.NET Core MVC 1.0.0, version 1.1.0 will be fully compatible with ASP.NET Core MVC 1.1.0, version 1.3.15 will be fully compatible with ASP.NET Core MVC 1.3.0, and so on.
244+
245+
The public interface of My Tested ASP.NET Core MVC will not have any breaking changes when the version increases (unless entirely necessary).
246+
241247
## License
242248

243249
Code by Ivaylo Kenov. Copyright 2015-2016 Ivaylo Kenov ([http://mytestedasp.net](http://mytestedasp.net))
@@ -246,7 +252,7 @@ MyTested.AspNetCore.Mvc.Lite (the **FREE** and **UNLIMITED** version of the test
246252

247253
The source code of MyTested.AspNetCore.Mvc and its extensions (the full version of the testing library) is available under GNU Affero General Public License/FOSS License Exception.
248254

249-
Without a license code the full version of the library allows up to 100 assertions (around 25 test cases) per test project.
255+
Without a license code, the full version of the library allows up to 100 assertions (around 25 test cases) per test project.
250256

251257
**Full-featured license codes can be requested for free by individuals, open-source projects, startups and educational institutions**. See [https://mytestedasp.net/Core/Mvc#free-usage-modal](https://mytestedasp.net/Core/Mvc#free-usage-modal) for more information.
252258

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"projects": [ "src", "test", "samples" ],
33
"sdk": {
4-
"version": "1.0.0-preview2-003121"
4+
"version": "1.0.0-preview2-1-003177"
55
}
66
}

samples/ApplicationParts/ApplicationParts.Controllers/project.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"dependencies": {
3-
"NETStandard.Library": "1.6.0",
4-
"Microsoft.AspNetCore.Mvc": "1.0.1",
5-
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0",
6-
"ApplicationParts.Models": "*",
7-
"ApplicationParts.Services": "*"
3+
"NETStandard.Library": "1.6.1",
4+
"Microsoft.AspNetCore.Mvc": "1.1.0",
5+
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.1.0",
6+
"ApplicationParts.Models": "*",
7+
"ApplicationParts.Services": "*"
88
},
99

1010
"frameworks": {

0 commit comments

Comments
 (0)