AspNetWebStack/test/System.Web.Razor.Test
Doug Bunting 169d95fc06
Bump test project dependencies (#383)
Bump test project dependencies
- Castle.Core, Moq, and xUnit versions were all out of date
- hold xunit.runner.visualstudio version back in .NET SDK test projects
  - can be moved to latest version after we stop testing on netcoreapp2.1
- add missing xunit.analyzers reference to System.Web.Razor.Test project
- move all test projects to .NET v4.6.2 (a supported framework)
  - remove `netstandard` reference in System.Net.Http.Formatting.Test; not needed w/ new TFM & updated references
- further separate build of Microsoft.TestCommon project when invoked from NetCore.Test project
  - special case `RestorePackages` for this case
  - add System.Net.Http references to avoid conflicting versions e.g. src/ and test/ TFMs differ

React to changed xUnit APIs
- adjust Microsoft.TestCommon code
- nit: use `Array.Empty<byte>()` in `TranscodingStreamTests`
  - `TranscodingStream` `internal`s can be `private` instead

Resolve xUnit issues new analyzers find
- address xUnit2000 warnings
  - pass expected values to `Assert.Equal(...)` as correct (left) argument
- make generic method types explicit to avoid
  `error CS0121: The call is ambiguous between the following methods or properties: ...`
- note: cannot remove unnecessary xUnit1013 suppression
  - related bug (xunit/xunit#1466) apparently not fixed in 1.0.0 analyzers package
  - was xunit/xunit.analyzers#82 fix (in 2017) insufficient?

React to new Moq changes
- avoid `ProtectedMock\`1.ThrowIfPublicMethod(...)` `throw`ing
  - use new overloads introduced in the Moq 4.11.0 release
- adjust to Moq hiding the `ObjectProxy` type better
- update `ControllerContext` mocking to avoid NREs
  - setting `HttpContext.User` on the `Object` left `get` value `null` (did nothing)
- nit: use `SetupGet(...)` for another property
2023-01-30 20:52:17 -08:00
..
Editor Don't leak `ManualResetEventSlim`s or `Thread`s waiting on them 2016-08-29 09:43:37 -07:00
Framework Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
Generator Add `xunit.runner.visualstudio` dependency to all test projects 2016-08-26 10:52:29 -07:00
Parser Add xUnit analyzers and take xUnit fixer suggestions (5 of 5): System.Web.Razor.Test to end 2017-11-01 12:11:55 -07:00
TestFiles Adding tests to cover bug 933. 2013-07-16 15:52:50 -07:00
Text Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
Tokenizer Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
Utils Add xUnit analyzers and take xUnit fixer suggestions (5 of 5): System.Web.Razor.Test to end 2017-11-01 12:11:55 -07:00
CSharpRazorCodeLanguageTest.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
CodeCompileUnitExtensions.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
RazorCodeLanguageTest.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
RazorDirectiveAttributeTest.cs Add xUnit analyzers and take xUnit fixer suggestions (5 of 5): System.Web.Razor.Test to end 2017-11-01 12:11:55 -07:00
RazorEngineHostTest.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
RazorTemplateEngineTest.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
StringTextBuffer.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
System.Web.Razor.Test.csproj Bump test project dependencies (#383) 2023-01-30 20:52:17 -08:00
VBRazorCodeLanguageTest.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
packages.config Bump test project dependencies (#383) 2023-01-30 20:52:17 -08:00