From bd644fdb3296b79d256cbb12be420d79249e35df Mon Sep 17 00:00:00 2001 From: Drew Pennyfeather Date: Tue, 7 Nov 2017 20:05:51 -0500 Subject: [PATCH] Update code to use C# 6 features Update code to use C# 6 (String interpolation, null propogation, Expression Bodied Methods). Inlcude NUnit Test Adapter to see Unit Tests in VS Test Explorer --- .gitignore | 2 + ...Stack.FluentMVCTesting.Sample.Tests.csproj | 3 + ...stStack.FluentMVCTesting.Mvc3.Tests.csproj | 3 + ...stStack.FluentMVCTesting.Mvc4.Tests.csproj | 3 + .../AsyncControllerTests.cs | 1 + .../ControllerExtensionsTests.cs | 5 +- .../ControllerResultTestTests.cs | 5 +- .../ShouldReturnContentTests.cs | 2 +- .../TestStack.FluentMVCTesting.Tests.csproj | 8 ++- .../packages.config | 1 + .../ControllerExtensions.cs | 22 +++---- .../ControllerResultTest.cs | 14 ++--- .../ShouldGiveHttpStatus.cs | 6 +- .../ControllerResultTest/ShouldRedirectTo.cs | 57 +++++++------------ .../ControllerResultTest/ShouldRenderFile.cs | 38 ++----------- .../ControllerResultTest/ShouldRenderView.cs | 25 +++----- .../ShouldReturnContent.cs | 20 ++----- TestStack.FluentMvcTesting/ModelErrorTest.cs | 32 +++-------- TestStack.FluentMvcTesting/ModelTest.cs | 9 +-- .../RouteValueDictionaryExtension.cs | 12 +--- .../TestStack.FluentMVCTesting.csproj | 1 + TestStack.FluentMvcTesting/ViewResultTest.cs | 7 +-- 22 files changed, 94 insertions(+), 182 deletions(-) diff --git a/.gitignore b/.gitignore index c35faf5..5d48d02 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ _ReSharper* */NhibernateProfiler*/tools packages /TestStack.FluentMVCTesting.Example/App_Data +.vs/config/applicationhost.config +.vs/TestStack.FluentMVCTesting/v15/sqlite3/storage.ide diff --git a/Samples/TestStack.FluentMVCTesting.Sample.Tests/TestStack.FluentMVCTesting.Sample.Tests.csproj b/Samples/TestStack.FluentMVCTesting.Sample.Tests/TestStack.FluentMVCTesting.Sample.Tests.csproj index 3f1a983..f0552dc 100644 --- a/Samples/TestStack.FluentMVCTesting.Sample.Tests/TestStack.FluentMVCTesting.Sample.Tests.csproj +++ b/Samples/TestStack.FluentMVCTesting.Sample.Tests/TestStack.FluentMVCTesting.Sample.Tests.csproj @@ -96,6 +96,9 @@ TestStack.FluentMVCTesting.Sample + + +