Commit Graph
782 Commits
Author SHA1 Message Date
Stephen Toub 7bdae2162f Contribute to StyleCop SA1002 (semicolon spacing)
However, I'm not enabling the rule permanently, as it disagrees with VS IDE0055 about the spacing around semicolons at the end of empty while and for loops.

Because this also impacts `for (;;)` loops, I also searched and replaced those with `while (true)`, to standardize on that across the codebase.


Commit migrated from https://github.com/dotnet/corefx/commit/93285e4511a9656a30b92b8b6a9088608aac40e0
2019-08-24 07:47:35 -04:00
madmir 018e1b82e8 Re-enable xunit warning 2017 (dotnet/corefx#40467)
* Re-enable xunit warning 2017

Use specialized assertions for checking for elements in collections.

* Revert Re-enable xunit warning 2017, revert some test changes

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/2fc48e13e87a4e68576d7df7af420ac2874e929e
2019-08-22 10:17:26 -04:00
Stephen Toub 6a988c7d03 Enable StyleCop rules 1205, 1411, 1026, and 1000 (dotnet/corefx#40254)
* Fix StyleCop warning SA1411 (attribute ctor shouldn't use unnecessary parens)

* Fix StyleCop warning SA1026 (new[] spacing)

* Fix StyleCop warning SA1000 (consistent spacing around if, for, switch, etc.)

* Fix StyleCop warning SA1205 (partial elements should declare an access modifier)


Commit migrated from https://github.com/dotnet/corefx/commit/0c4c234a918254d569ffb0f6a607f98193608646
2019-08-12 22:45:34 +02:00
Stephen Toub 60d1224ddd Re-enable StyleCop warnings SA1028 and SA1518 (trailing whitespace and blank lines) (dotnet/corefx#40113)
Mechanical/automated change.  The only manual changes were a) removing the two rules from the CodeAnalysis.ruleset file, b) removing spaces from one line of a .targets file that is used to generate a .cs file, and c) reverting the changes in a few test files where the naive replacement happened in the middle of a verbatim string where the whitespace actually mattered.

Commit migrated from https://github.com/dotnet/corefx/commit/09a6e66b0c2b31bd0f6e7e3170537d14027aeed0
2019-08-07 21:07:58 -04:00
Stephen Toub d24aa292ac Re-enable xunit warning 2009 (dotnet/corefx#39847)
Commit migrated from https://github.com/dotnet/corefx/commit/6737565ccbb8ceb484d349bd6844f7470bf23248
2019-07-29 09:42:13 -04:00
Ganbarukamo41 9be9c570be Enable analyzer for xUnit2000 (Constants and literals should be the expected argument) (dotnet/corefx#39842)
* Enable xUnit2000 analyzer

This commit enables xUnit2000 (Constants and literals should be the expected argument) and apply fixes for the existing violating codes.
* a Massive commit fixing xUnit2000
* fixing some 2003 errors

* Fix mistakes

* Fix missed errors for unix


Commit migrated from https://github.com/dotnet/corefx/commit/93d7aa1c1737b6da29d04b78557215e18eb786d4
2019-07-28 15:47:52 -07:00
Viktor Hofer 4f76a9ffa2 Enable xunit2007 analyzer (dotnet/corefx#39740)
Commit migrated from https://github.com/dotnet/corefx/commit/619f140e2f0e722a17f3797d532b21ace774ec2e
2019-07-24 22:03:09 -04:00
Stephen Toub 596fc08766 Re-enable xUnit2008 (Assert.True with regex) (dotnet/corefx#39739)
Commit migrated from https://github.com/dotnet/corefx/commit/e091ee920b211b28a9d8a7928ca3b15294789d82
2019-07-24 21:58:45 -04:00
Stephen Toub cd3ca6f991 Re-enable xunit warning 2004 (dotnet/corefx#39698)
* Replace "Assert.Equal(true, " with "Assert.True("

* Replace "Assert.Equal(false, " with "Assert.False("

And fix a few Assert.Equal(true cases that deal with objects and thus need to be reverted.

* Replace "Assert.StrictEqual(true, " with "Assert.True("

* Revert a few changes where true/false was being compared to object

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/1296bc8386a7283e319ddf723282f16651f9ea5f
2019-07-23 17:05:15 -04:00
Stephen Toub 47f8f6d47d Re-enable xunit warning 2003 (dotnet/corefx#39696)
* Replace "Assert.Equal(null, " with "Assert.Null("

* Replace "Assert.NotEqual(null, " with "Assert.NotNull("

* Replace "Assert.Same(null, " with "Assert.Null("

* Replace "Assert.StrictEqual(null, " with "Assert.Null("


Commit migrated from https://github.com/dotnet/corefx/commit/6de660a02e335eefebfcc3c81ecb0013e2a8148e
2019-07-23 15:49:33 -04:00
Santiago Fernandez Madero 1b4cf22dd1 Make all events nullable (dotnet/corefx#39578)
Commit migrated from https://github.com/dotnet/corefx/commit/ba2d62a24ea8574f40c43cd27cc384f079958a0c
2019-07-17 20:07:03 -07:00
Santiago Fernandez Madero b86523fddc Add nullable annotations to System.Diagnostics.Tracing ref (dotnet/corefx#38434)
* Add nullable annotations to System.Diagnostics.Tracing ref

* Address API Review feedback


Commit migrated from https://github.com/dotnet/corefx/commit/96fe425e1ae8e16dcd726b6bea7bf4bd6295ba6c
2019-06-20 23:01:57 -07:00
Viktor Hofer 5f98ba6a2b Enable project restore for test projects (dotnet/corefx#38151)
* Factor out repo restore into seperate props/targets

* Use configuration system msbuild sdk

* Remove XUnit.Runtime.depproj

* Remove TargetGroup usages in test projects

* Fix ILLink configuration

The ILLink package contains netcoreapp2.0 assets which are compatible
with netstandard2.0. Removing the old TargetFramework to restore
successfully.

* Remove usages from TargetGroup in Directory.Build.props

* Remove dead net4* configurations

* Change tests.builds to tests.proj sdk proj

* Make externals dir proj an sdk project

* Consume Microsoft.DotNet.CoreFxTesting as an msbuild sdk

* Use runtimeconfig.template.json

* Remove SupplementalTestData

* Map shared framework version to product version

* Stop binplacing tests

* Move some tool depprojs to targets during restore

* Remove dead code

* Use PackageReference instead of RefFromRuntime in test

* Disable using an apphost

* Copy compression testdata manually cause unicode bug

* Remove target batching in optimizationData

* Reference packaging tools from CoreFx.Private.TestUtilities


Commit migrated from https://github.com/dotnet/corefx/commit/c4c1985531cc1f25c805bbc4801b85c98e0dfee0
2019-06-15 21:27:13 +02:00
Viktor Hofer a5d5b91672 Delete dead uapaot code (dotnet/corefx#38330)
* Delete dead uapaot code

Commit migrated from https://github.com/dotnet/corefx/commit/8c2be7893fa585cba9c094c27b69d7c8e0822ef3
2019-06-14 15:12:42 +02:00
Sung Yoon Whang 47776a3f9d Add DisplayUnits to DiagnosticCounter reference assembly
Commit migrated from https://github.com/dotnet/corefx/commit/6203eb73f97b31503972bbe357e393287f3ecc74
2019-06-08 22:58:48 -04:00
Viktor Hofer cacc1ff968 Remove NetNative uapaot support (dotnet/corefx#38170)
* Remove NetNative uapaot support

* Remove uapaot assets from packages

* Disable emit lightweight and ilgen version check


Commit migrated from https://github.com/dotnet/corefx/commit/ab58ff6e649852b85fdb99b15992a2fa3a7d8834
2019-06-06 21:39:46 +02:00
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
dotnet-maestro[bot] 1030e61c68 [master] Update dependencies from dotnet/coreclr (dotnet/corefx#37514)
* Update dependencies from https://github.com/dotnet/coreclr build 20190507.72

- Microsoft.NET.Sdk.IL - 3.0.0-preview6-27707-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview6-27707-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview6-27707-72

* Update Microsoft.DotNet.XUnitConsoleRunner

We need the fix which removes STAThread from the main routine of
xunit.console.

* Clean up the baseline for DiagnosticCounter

* Update test baseline.


Commit migrated from https://github.com/dotnet/corefx/commit/5640cde41c872e03e6a8a751fac5092e3c68b2c6
2019-05-09 07:03:22 -04:00
Eric StJohn afd313db03 React to APICompat changes enabling reverse APICompat for facades (dotnet/corefx#37375)
* React to APICompat changes enabling reverse APICompat for facades

* Fix UAP and NETFX reverse APICompat issues

* Fix reverse APICompat baseline for allconfigurations build

* Manually update to latest APICompat

* Manually update to latest CoreCLR and fix issues

* Baseline System.Threading.Tasks

* Revert "Manually update to latest CoreCLR and fix issues"

This partially reverts commit dotnet/corefx@ee800617b6.

I'm keeping the baseline changes which will be needed when we get a new update.

* Temporarily baseline DiagnosticCounter API gaps

This can be removed when get a new CoreCLR

That's currently blocked due to regressions in tests.


Commit migrated from https://github.com/dotnet/corefx/commit/035343743c5a7f67be8a2a2f36913a3c43893b76
2019-05-07 19:46:58 -07:00
Anirudh Agnihotry dd9d69e1d3 Making ctors internal for types with internal abstract methods (dotnet/corefx#37479)
* making ctors internal for types with internal abstract methods

* fixing build error


Commit migrated from https://github.com/dotnet/corefx/commit/28a926b5b38eefb18cd77b4cb0b74fdda99cdb26
2019-05-06 21:27:07 -07:00
Tanner Gooding 5a5ed7652a Regenerating reference sources in order to reorder enum fields (dotnet/corefx#37045)
Commit migrated from https://github.com/dotnet/corefx/commit/17382def0f680653870c31af1acf086ac41dcc0b
2019-04-23 13:40:45 -07:00
Sung Yoon Whang e62df9a456 Add missing method
Commit migrated from https://github.com/dotnet/corefx/commit/c150a145990a662258e685ea204a8e83a7333111
2019-04-18 19:27:39 -07:00
Sung Yoon Whang b785512d4c I'm stupid
Commit migrated from https://github.com/dotnet/corefx/commit/d64827a410909d18d90c0fa2b25c52f65ce59e2c
2019-04-18 19:27:39 -07:00
Sung Yoon Whang fbd9e176a6 splitting implementation of EventCounter to non-uap/uap
Commit migrated from https://github.com/dotnet/corefx/commit/2d1e2ff48e61a70ef990f48e677f6237b044fe52
2019-04-18 19:27:39 -07:00
Sung Yoon Whang c5e2b0a662 try to exclude new counters for uap
Commit migrated from https://github.com/dotnet/corefx/commit/c29c7b4a5630b896bbbb73f18f0de2dea9e0d123
2019-04-18 19:27:39 -07:00
Sung Yoon Whang 9466c777be disable exposing new counter types on ProjectN until they are propagated through the targetingpack
Commit migrated from https://github.com/dotnet/corefx/commit/33724212beccbdca43d020f595dce88e38eaab31
2019-04-18 19:27:39 -07:00
Sung Yoon Whang eff238c848 some type annotation stuff
Commit migrated from https://github.com/dotnet/corefx/commit/c478c7c2d86b31917e6bd8dd62c66d8f00cac10a
2019-04-18 19:27:39 -07:00
Sung Yoon Whang d5a27424ef remove extra nl
Commit migrated from https://github.com/dotnet/corefx/commit/0955fc31dfd9fca8b200aa5f1c59a453c01ca0ef
2019-04-18 19:27:39 -07:00
Sung Yoon Whang e0a2a3ae0e Exposing the new counter APIs in System.Diagnostics.Tracing
Commit migrated from https://github.com/dotnet/corefx/commit/c042b3aa7de95332624f3d725e8abdb4d3d043f5
2019-04-18 19:27:39 -07:00
Anirudh Agnihotry bc2d80c6f4 Removed netcoreappaot configuration from corefx (dotnet/corefx#36739)
* netcoreappaot-Windows_NT regex removed

* netcoreappaot-WebAssembly;\n regex removed

* netcoreappaot-Windows_NT-Debug;netcoreappaot-Windows_NT-Release;
regex removed

* netcoreappaot; regex removed

* netcoreappaot-Debug;netcoreappaot-Release; removed

* removing rest of occurences of netcoreappaot

* deleteing the netcoreappaot apicompat files


Commit migrated from https://github.com/dotnet/corefx/commit/e9d1a10ed1d38a8b1ed599b3b5be09b8349f8ea8
2019-04-09 14:07:31 -07:00
Viktor Hofer f8a8530d0f Project msbuild syntax cleanup (dotnet/corefx#35686)
* Remove license header from non-shipping files

* Remove obsolete Project attributes

* Remove xml header and remove DefaultTargets


Commit migrated from https://github.com/dotnet/corefx/commit/c390ce7df50252e11f5d322276e9d19e046d1332
2019-03-03 18:55:25 +01:00
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
dotnet-maestro-bot d7d270e82f Update ProjectNTfs, ProjectNTfsTestILC to beta-27413-00, beta-27413-00, respectively (master) (dotnet/corefx#35286)
* Update ProjectNTfs, ProjectNTfsTestILC to beta-27413-00, beta-27413-00, respectively

* Remove EventCounter from System.Diagnostics.Tracing aot builds


Commit migrated from https://github.com/dotnet/corefx/commit/d93c3864553f78002c674051e9cfafcceed6b2b8
2019-02-13 10:13:26 -06:00
Sung Yoon Whang 0b4e650f1b Merge pull request dotnet/corefx#35227 from dotnet/fix-eventsource-test
System.Runtime added to known test list in BasicEventSourceTest

Commit migrated from https://github.com/dotnet/corefx/commit/e8e469653ca46e0499c925dfaaea796fc6f61cb0
2019-02-11 22:05:40 -08:00
Stephen Toub 962f485625 Adjust System.Diagnostics.Tracing for moved EventCounter
Commit migrated from https://github.com/dotnet/corefx/commit/45b49ee8a56b0c53364e5c1a98c12b9d9cc8206d
2019-02-11 13:25:54 -05:00
Sung Yoon Whang d33bd52a8d System.Runtime added to known test list in BasicEventSourceTest
Commit migrated from https://github.com/dotnet/corefx/commit/fda971e6565b84c8605aa5bb19b3ffe2a8e139c6
2019-02-11 02:01:42 -08:00
Sung Yoon Whang 3fe63e7de6 move EventCounter to shared CoreLib (dotnet/corefx#35183)
Commit migrated from https://github.com/dotnet/corefx/commit/acb7df13e9fe7c91117a7ae5a85044b9caee03b8
2019-02-08 19:58:24 -08:00
Sung Yoon Whang 383e4c0483 some misc typos and wording fixes in eventcounter tutorial (dotnet/corefx#34960)
Commit migrated from https://github.com/dotnet/corefx/commit/7cbda74a0bbee1321c6966891bca6c7aba520aef
2019-01-30 13:45:22 -08:00
Andrew Au 53a41e2129 Update EventCounter blog with visualization
Commit migrated from https://github.com/dotnet/corefx/commit/6363a11e0509ab47c3097c87a123ac10bc0a76e9
2019-01-11 14:28:08 -08:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
jbhensley bb51ce0866 Properly unwrap nullables for self describing ETW tests
Commit migrated from https://github.com/dotnet/corefx/commit/b695ff7a5bfbc12ec36cc0cadf686687c8db5e8a
2018-10-24 09:20:03 -07:00
jbhensley 7d6c136699 Modify tests to properly unwrap nullable from event payload
Commit migrated from https://github.com/dotnet/corefx/commit/52e09710b5cf3e69db9d90abab533d77957e02a0
2018-10-23 19:08:05 -07:00
jbhensley ccc5db6b94 Attempt to handle payload as several different types
Commit migrated from https://github.com/dotnet/corefx/commit/c4be58c8dae63c8debd3b37b6c9b036ad0af76c4
2018-10-23 12:57:22 -07:00
jbhensley 7ba55b6766 Attempt to make tests work both locally and on CI
Commit migrated from https://github.com/dotnet/corefx/commit/a40a3cf581944d656814ce990a970c860d989455
2018-10-22 16:05:20 -07:00
jbhensley 9866cc29f8 Change to get payload type namespace and name
Commit migrated from https://github.com/dotnet/corefx/commit/8756cadfd81f4c1604db7aa548753af3997f1692
2018-10-22 07:30:03 -07:00
jbhensley 48aa10d718 Nullable test event payload as IDictionary
Commit migrated from https://github.com/dotnet/corefx/commit/83883467d7894715d2b66ee812672c68472badb6
2018-10-21 16:44:40 -07:00
jbhensley 83fca2f7b6 Event payload as IDictionary
Commit migrated from https://github.com/dotnet/corefx/commit/e9b94baf86522ecb95dcbc7f82940700ec393a6e
2018-10-21 16:07:43 -07:00
jbhensley 964d0f61d3 Event payload as Dictionary
Commit migrated from https://github.com/dotnet/corefx/commit/ff4e373b9b1baac763b6f82c5808676763e441bd
2018-10-21 16:03:08 -07:00
jbhensley 2817fe637c Conditional method call to get type info through stacktrace
Commit migrated from https://github.com/dotnet/corefx/commit/722f87c6b0ac1cefc1913258910664751a04a0df
2018-10-21 15:24:00 -07:00
jbhensley ccdb98f9d6 Add xUnit output to trace eventNullableInt type in CI test
Commit migrated from https://github.com/dotnet/corefx/commit/9e0cb739685f0cb60b3d218e8d8771c988319652
2018-10-21 14:29:44 -07:00