├── .editorconfig
├── .gitattributes
├── .gitignore
├── Directory.Build.props
├── Directory.Build.targets
├── LICENSE.txt
├── NuGet.Config
├── README.md
├── analyzers.vs2019
├── .editorconfig
├── analyzers.vs2019.sln
├── v2-full
│ └── v2-full.csproj
└── v3-full
│ └── v3-full.csproj
├── analyzers
├── .editorconfig
├── analyzers.sln
├── common
│ ├── 1xxx_Usage
│ │ ├── xUnit1000.cs
│ │ ├── xUnit1001.cs
│ │ ├── xUnit1002.cs
│ │ ├── xUnit1003.cs
│ │ ├── xUnit1004.cs
│ │ ├── xUnit1005.cs
│ │ ├── xUnit1006.cs
│ │ ├── xUnit1007.cs
│ │ ├── xUnit1008.cs
│ │ ├── xUnit1009.cs
│ │ ├── xUnit1010.cs
│ │ ├── xUnit1011.cs
│ │ ├── xUnit1012.cs
│ │ ├── xUnit1013.cs
│ │ ├── xUnit1014.cs
│ │ ├── xUnit1015.cs
│ │ ├── xUnit1016.cs
│ │ ├── xUnit1017.cs
│ │ ├── xUnit1018.cs
│ │ ├── xUnit1019.cs
│ │ ├── xUnit1020.cs
│ │ ├── xUnit1021.cs
│ │ ├── xUnit1024.cs
│ │ ├── xUnit1025.cs
│ │ ├── xUnit1026.cs
│ │ ├── xUnit1027.cs
│ │ ├── xUnit1029.cs
│ │ ├── xUnit1030.cs
│ │ ├── xUnit1031.cs
│ │ ├── xUnit1032.cs
│ │ ├── xUnit1033.cs
│ │ ├── xUnit1034.cs
│ │ ├── xUnit1035.cs
│ │ ├── xUnit1036.cs
│ │ ├── xUnit1037.cs
│ │ ├── xUnit1038.cs
│ │ ├── xUnit1039.cs
│ │ ├── xUnit1040.cs
│ │ ├── xUnit1041.cs
│ │ ├── xUnit1042.cs
│ │ ├── xUnit1043.cs
│ │ ├── xUnit1044.cs
│ │ └── xUnit1045.cs
│ └── 2xxx_Assertions
│ │ ├── xUnit2000.cs
│ │ ├── xUnit2001.cs
│ │ ├── xUnit2002.cs
│ │ ├── xUnit2003.cs
│ │ ├── xUnit2004.cs
│ │ ├── xUnit2005.cs
│ │ ├── xUnit2006.cs
│ │ ├── xUnit2007.cs
│ │ ├── xUnit2008.cs
│ │ ├── xUnit2009.cs
│ │ ├── xUnit2010.cs
│ │ ├── xUnit2011.cs
│ │ ├── xUnit2012.cs
│ │ ├── xUnit2013.cs
│ │ ├── xUnit2014.cs
│ │ ├── xUnit2015.cs
│ │ ├── xUnit2016.cs
│ │ ├── xUnit2017.cs
│ │ ├── xUnit2018.cs
│ │ ├── xUnit2020.cs
│ │ ├── xUnit2021.cs
│ │ ├── xUnit2022.cs
│ │ ├── xUnit2023.cs
│ │ ├── xUnit2024.cs
│ │ ├── xUnit2025.cs
│ │ ├── xUnit2026.cs
│ │ ├── xUnit2027.cs
│ │ ├── xUnit2028.cs
│ │ ├── xUnit2029.cs
│ │ ├── xUnit2030.cs
│ │ ├── xUnit2031.cs
│ │ └── xUnit2032.cs
├── v2-abstractions
│ └── v2-abstractions.csproj
├── v2-core
│ └── v2-core.csproj
├── v2-execution
│ └── v2-execution.csproj
├── v2-full
│ ├── 1xxx_Usage
│ │ ├── xUnit1028.cs
│ │ └── xUnit1048.cs
│ ├── 3xxx_Extensibility
│ │ ├── xUnit3000.cs
│ │ └── xUnit3001.cs
│ └── v2-full.csproj
└── v3-full
│ ├── 1xxx_Usage
│ ├── xUnit1028.cs
│ ├── xUnit1046.cs
│ ├── xUnit1047.cs
│ ├── xUnit1049.cs
│ ├── xUnit1050.cs
│ └── xUnit1051.cs
│ ├── 3xxx_Extensibility
│ ├── xUnit3001.cs
│ └── xUnit3002.cs
│ └── v3-full.csproj
├── console
├── build
├── build.ps1
├── console.sln
├── v2x_net472
│ ├── BasicTests.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── v2x_net472.csproj
├── v2x_net472_Sdk
│ ├── BasicTests.cs
│ └── v2x_net472_Sdk.csproj
├── v3x_net472
│ ├── BasicTests.cs
│ └── v3x_net472.csproj
├── v3x_net80
│ ├── BasicTests.cs
│ └── v3x_net80.csproj
└── xunit.runner.json
├── global.json
├── msbuild
├── build
├── build.ps1
├── msbuild.sln
├── v2x_net472
│ ├── BasicTests.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── v2x_net472.csproj
├── v2x_net472_Sdk
│ ├── BasicTests.cs
│ └── v2x_net472_Sdk.csproj
├── v3x_net472
│ ├── BasicTests.cs
│ └── v3x_net472.csproj
├── v3x_net80
│ ├── BasicTests.cs
│ └── v3x_net80.csproj
└── xunit.runner.json
└── test-explorer
├── Directory.Build.props
├── MSTest_and_v2x
├── BasicTests_MSTest.cs
├── BasicTests_xUnit.cs
└── MSTest_and_v2x.csproj
├── test-explorer.sln
├── v1x_net472
├── BasicTests.cs
├── RunWithTests.cs
└── v1x_net472.csproj
├── v2x_net472
├── AbstractTestClass.cs
├── BasicTests.cs
├── DeserializationFailureTests.cs
├── DuplicateUniqueIDs.cs
├── FixtureFailureTests.cs
├── FixtureWithMixedFactAndTheory.cs
└── v2x_net472.csproj
├── v2x_net472_FSharp
├── BasicTests.fs
└── v2x_net472_FSharp.fsproj
├── v2x_net472_OldProject
├── BasicTests.cs
└── v2x_net472_OldProject.csproj
├── v2x_net472_ReferencingProject
├── ConcreteTestClass.cs
├── Properties
│ └── AssemblyInfo.cs
└── v2x_net472_ReferencingProject.csproj
├── v2x_net80
├── BasicTests.cs
└── v2x_net80.csproj
├── v3x_net472
├── BasicTests.cs
└── v3x_net472.csproj
├── v3x_net80
├── BasicTests.cs
└── v3x_net80.csproj
└── xunit.runner.json
/.editorconfig:
--------------------------------------------------------------------------------
1 | # top-most EditorConfig file
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | end_of_line = lf
7 | insert_final_newline = true
8 | # We differ from xunit/xunit .editorconfig by using spaces, because it makes example code easier to copy
9 | indent_style = space
10 |
11 | [*.sln]
12 | end_of_line = crlf
13 |
14 | # Visual Studio demands 2-spaced project files
15 | # Tabs are not legal whitespace for YAML files
16 | [*.{csproj,json,props,targets,xslt,yaml,yml}]
17 | indent_style = space
18 | indent_size = 2
19 |
20 | [*.cs]
21 | # Organize usings
22 | dotnet_separate_import_directive_groups = false
23 | dotnet_sort_system_directives_first = true
24 | file_header_template = unset
25 |
26 | # this. and Me. preferences
27 | dotnet_style_qualification_for_event = false
28 | dotnet_style_qualification_for_field = false
29 | dotnet_style_qualification_for_method = false
30 | dotnet_style_qualification_for_property = false
31 |
32 | # Language keywords vs BCL types preferences
33 | dotnet_style_predefined_type_for_locals_parameters_members = true
34 | dotnet_style_predefined_type_for_member_access = true
35 |
36 | # Parentheses preferences
37 | dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
38 | dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
39 | dotnet_style_parentheses_in_other_operators = never_if_unnecessary
40 | dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
41 |
42 | # Modifier preferences
43 | dotnet_style_require_accessibility_modifiers = for_non_interface_members
44 |
45 | # Expression-level preferences
46 | dotnet_style_coalesce_expression = true
47 | dotnet_style_collection_initializer = true
48 | dotnet_style_explicit_tuple_names = true
49 | dotnet_style_namespace_match_folder = false
50 | dotnet_style_null_propagation = true
51 | dotnet_style_object_initializer = true
52 | dotnet_style_operator_placement_when_wrapping = beginning_of_line
53 | dotnet_style_prefer_auto_properties = true
54 | dotnet_style_prefer_compound_assignment = true
55 | dotnet_style_prefer_conditional_expression_over_assignment = true
56 | dotnet_style_prefer_conditional_expression_over_return = true
57 | dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
58 | dotnet_style_prefer_inferred_anonymous_type_member_names = true
59 | dotnet_style_prefer_inferred_tuple_names = true
60 | dotnet_style_prefer_is_null_check_over_reference_equality_method = true
61 | dotnet_style_prefer_simplified_boolean_expressions = true
62 | dotnet_style_prefer_simplified_interpolation = true
63 |
64 | # Field preferences
65 | dotnet_style_readonly_field = true
66 |
67 | # Parameter preferences
68 | dotnet_code_quality_unused_parameters = all
69 |
70 | # Suppression preferences
71 | dotnet_remove_unnecessary_suppression_exclusions = none
72 |
73 | # New line preferences
74 | dotnet_style_allow_multiple_blank_lines_experimental = true
75 | dotnet_style_allow_statement_immediately_after_block_experimental = true
76 |
77 | #### C# Coding Conventions ####
78 |
79 | # var preferences
80 | csharp_style_var_elsewhere = true
81 | csharp_style_var_for_built_in_types = true
82 | csharp_style_var_when_type_is_apparent = true
83 |
84 | # Expression-bodied members
85 | csharp_style_expression_bodied_accessors = true
86 | csharp_style_expression_bodied_constructors = false
87 | csharp_style_expression_bodied_indexers = true
88 | csharp_style_expression_bodied_lambdas = true
89 | csharp_style_expression_bodied_local_functions = false
90 | csharp_style_expression_bodied_methods = when_on_single_line
91 | csharp_style_expression_bodied_operators = false
92 | csharp_style_expression_bodied_properties = true
93 |
94 | # Pattern matching preferences
95 | csharp_style_pattern_matching_over_as_with_null_check = true
96 | csharp_style_pattern_matching_over_is_with_cast_check = true
97 | csharp_style_prefer_extended_property_pattern = true
98 | csharp_style_prefer_not_pattern = true
99 | csharp_style_prefer_pattern_matching = true
100 | csharp_style_prefer_switch_expression = true
101 |
102 | # Null-checking preferences
103 | csharp_style_conditional_delegate_call = true
104 |
105 | # Modifier preferences
106 | csharp_prefer_static_local_function = true
107 | csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
108 |
109 | # Code-block preferences
110 | csharp_prefer_braces = false
111 | csharp_prefer_simple_using_statement = true
112 | csharp_style_namespace_declarations = file_scoped
113 |
114 | # Expression-level preferences
115 | csharp_prefer_simple_default_expression = true
116 | csharp_style_deconstructed_variable_declaration = true
117 | csharp_style_implicit_object_creation_when_type_is_apparent = true
118 | csharp_style_inlined_variable_declaration = true
119 | csharp_style_pattern_local_over_anonymous_function = true
120 | csharp_style_prefer_index_operator = true
121 | csharp_style_prefer_null_check_over_type_check = true
122 | csharp_style_prefer_range_operator = true
123 | csharp_style_throw_expression = true
124 | csharp_style_unused_value_assignment_preference = discard_variable
125 | csharp_style_unused_value_expression_statement_preference = discard_variable
126 |
127 | # 'using' directive preferences
128 | csharp_using_directive_placement = outside_namespace:warning
129 |
130 | # New line preferences
131 | csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
132 | csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
133 | csharp_style_allow_embedded_statements_on_same_line_experimental = true
134 |
135 | #### C# Formatting Rules ####
136 |
137 | # New line preferences
138 | csharp_new_line_before_catch = true
139 | csharp_new_line_before_else = true
140 | csharp_new_line_before_finally = true
141 | csharp_new_line_before_members_in_anonymous_types = true
142 | csharp_new_line_before_members_in_object_initializers = true
143 | csharp_new_line_before_open_brace = all
144 | csharp_new_line_between_query_expression_clauses = true
145 |
146 | # Indentation preferences
147 | csharp_indent_block_contents = true
148 | csharp_indent_braces = false
149 | csharp_indent_case_contents = true
150 | csharp_indent_case_contents_when_block = true
151 | csharp_indent_labels = one_less_than_current
152 | csharp_indent_switch_labels = true
153 |
154 | # Space preferences
155 | csharp_space_after_cast = false
156 | csharp_space_after_colon_in_inheritance_clause = true
157 | csharp_space_after_comma = true
158 | csharp_space_after_dot = false
159 | csharp_space_after_keywords_in_control_flow_statements = true
160 | csharp_space_after_semicolon_in_for_statement = true
161 | csharp_space_around_binary_operators = before_and_after
162 | csharp_space_around_declaration_statements = false
163 | csharp_space_before_colon_in_inheritance_clause = true
164 | csharp_space_before_comma = false
165 | csharp_space_before_dot = false
166 | csharp_space_before_open_square_brackets = false
167 | csharp_space_before_semicolon_in_for_statement = false
168 | csharp_space_between_empty_square_brackets = false
169 | csharp_space_between_method_call_empty_parameter_list_parentheses = false
170 | csharp_space_between_method_call_name_and_opening_parenthesis = false
171 | csharp_space_between_method_call_parameter_list_parentheses = false
172 | csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
173 | csharp_space_between_method_declaration_name_and_open_parenthesis = false
174 | csharp_space_between_method_declaration_parameter_list_parentheses = false
175 | csharp_space_between_parentheses = false
176 | csharp_space_between_square_brackets = false
177 |
178 | # Wrapping preferences
179 | csharp_preserve_single_line_blocks = true
180 | csharp_preserve_single_line_statements = true
181 |
182 | #### Naming styles ####
183 |
184 | # Naming rules
185 |
186 | dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
187 | dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
188 | dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
189 |
190 | dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
191 | dotnet_naming_rule.types_should_be_pascal_case.symbols = types
192 | dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
193 |
194 | dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
195 | dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
196 | dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
197 |
198 | # Symbol specifications
199 |
200 | dotnet_naming_symbols.interface.applicable_kinds = interface
201 | dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
202 | dotnet_naming_symbols.interface.required_modifiers =
203 |
204 | dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
205 | dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
206 | dotnet_naming_symbols.types.required_modifiers =
207 |
208 | dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
209 | dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
210 | dotnet_naming_symbols.non_field_members.required_modifiers =
211 |
212 | # Naming styles
213 |
214 | dotnet_naming_style.pascal_case.required_prefix =
215 | dotnet_naming_style.pascal_case.required_suffix =
216 | dotnet_naming_style.pascal_case.word_separator =
217 | dotnet_naming_style.pascal_case.capitalization = pascal_case
218 |
219 | dotnet_naming_style.begins_with_i.required_prefix = I
220 | dotnet_naming_style.begins_with_i.required_suffix =
221 | dotnet_naming_style.begins_with_i.word_separator =
222 | dotnet_naming_style.begins_with_i.capitalization = pascal_case
223 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto eol=lf
2 |
3 | *.cs text diff=csharp
4 | *.csproj text merge=union
5 | *.ico binary
6 | *.resx text merge=union
7 | *.sln text eol=crlf merge=union
8 | *.snk binary
9 | *.vbproj text merge=union
10 | *.xls binary
11 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Visual Studio
2 | launchSettings.json
3 |
4 | # NCrunch
5 | *.ncrunchsolution
6 | *.ncrunchsolution.user
7 | *.ncrunchproject
8 |
9 | # Mono's local registry
10 | .mono
11 |
12 | ##### Copied from https://github.com/github/gitignore/blob/7b22f8ab6c85b4ef1469d72a8ba96462e2a44853/VisualStudio.gitignore
13 |
14 | ## Ignore Visual Studio temporary files, build results, and
15 | ## files generated by popular Visual Studio add-ons.
16 | ##
17 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
18 |
19 | # User-specific files
20 | *.rsuser
21 | *.suo
22 | *.user
23 | *.userosscache
24 | *.sln.docstates
25 |
26 | # User-specific files (MonoDevelop/Xamarin Studio)
27 | *.userprefs
28 |
29 | # Mono auto generated files
30 | mono_crash.*
31 |
32 | # Build results
33 | [Dd]ebug/
34 | [Dd]ebugPublic/
35 | [Rr]elease/
36 | [Rr]eleases/
37 | x64/
38 | x86/
39 | [Ww][Ii][Nn]32/
40 | [Aa][Rr][Mm]/
41 | [Aa][Rr][Mm]64/
42 | bld/
43 | [Bb]in/
44 | [Oo]bj/
45 | [Ll]og/
46 | [Ll]ogs/
47 |
48 | # Visual Studio 2015/2017 cache/options directory
49 | .vs/
50 | # Uncomment if you have tasks that create the project's static files in wwwroot
51 | #wwwroot/
52 |
53 | # Visual Studio 2017 auto generated files
54 | Generated\ Files/
55 |
56 | # MSTest test Results
57 | [Tt]est[Rr]esult*/
58 | [Bb]uild[Ll]og.*
59 |
60 | # NUnit
61 | *.VisualState.xml
62 | TestResult.xml
63 | nunit-*.xml
64 |
65 | # Build Results of an ATL Project
66 | [Dd]ebugPS/
67 | [Rr]eleasePS/
68 | dlldata.c
69 |
70 | # Benchmark Results
71 | BenchmarkDotNet.Artifacts/
72 |
73 | # .NET Core
74 | project.lock.json
75 | project.fragment.lock.json
76 | artifacts/
77 |
78 | # ASP.NET Scaffolding
79 | ScaffoldingReadMe.txt
80 |
81 | # StyleCop
82 | StyleCopReport.xml
83 |
84 | # Files built by Visual Studio
85 | *_i.c
86 | *_p.c
87 | *_h.h
88 | *.ilk
89 | *.meta
90 | *.obj
91 | *.iobj
92 | *.pch
93 | *.pdb
94 | *.ipdb
95 | *.pgc
96 | *.pgd
97 | *.rsp
98 | *.sbr
99 | *.tlb
100 | *.tli
101 | *.tlh
102 | *.tmp
103 | *.tmp_proj
104 | *_wpftmp.csproj
105 | *.log
106 | *.tlog
107 | *.vspscc
108 | *.vssscc
109 | .builds
110 | *.pidb
111 | *.svclog
112 | *.scc
113 |
114 | # Chutzpah Test files
115 | _Chutzpah*
116 |
117 | # Visual C++ cache files
118 | ipch/
119 | *.aps
120 | *.ncb
121 | *.opendb
122 | *.opensdf
123 | *.sdf
124 | *.cachefile
125 | *.VC.db
126 | *.VC.VC.opendb
127 |
128 | # Visual Studio profiler
129 | *.psess
130 | *.vsp
131 | *.vspx
132 | *.sap
133 |
134 | # Visual Studio Trace Files
135 | *.e2e
136 |
137 | # TFS 2012 Local Workspace
138 | $tf/
139 |
140 | # Guidance Automation Toolkit
141 | *.gpState
142 |
143 | # ReSharper is a .NET coding add-in
144 | _ReSharper*/
145 | *.[Rr]e[Ss]harper
146 | *.DotSettings.user
147 |
148 | # TeamCity is a build add-in
149 | _TeamCity*
150 |
151 | # DotCover is a Code Coverage Tool
152 | *.dotCover
153 |
154 | # AxoCover is a Code Coverage Tool
155 | .axoCover/*
156 | !.axoCover/settings.json
157 |
158 | # Coverlet is a free, cross platform Code Coverage Tool
159 | coverage*.json
160 | coverage*.xml
161 | coverage*.info
162 |
163 | # Visual Studio code coverage results
164 | *.coverage
165 | *.coveragexml
166 |
167 | # NCrunch
168 | _NCrunch_*
169 | .*crunch*.local.xml
170 | nCrunchTemp_*
171 |
172 | # MightyMoose
173 | *.mm.*
174 | AutoTest.Net/
175 |
176 | # Web workbench (sass)
177 | .sass-cache/
178 |
179 | # Installshield output folder
180 | [Ee]xpress/
181 |
182 | # DocProject is a documentation generator add-in
183 | DocProject/buildhelp/
184 | DocProject/Help/*.HxT
185 | DocProject/Help/*.HxC
186 | DocProject/Help/*.hhc
187 | DocProject/Help/*.hhk
188 | DocProject/Help/*.hhp
189 | DocProject/Help/Html2
190 | DocProject/Help/html
191 |
192 | # Click-Once directory
193 | publish/
194 |
195 | # Publish Web Output
196 | *.[Pp]ublish.xml
197 | *.azurePubxml
198 | # Note: Comment the next line if you want to checkin your web deploy settings,
199 | # but database connection strings (with potential passwords) will be unencrypted
200 | *.pubxml
201 | *.publishproj
202 |
203 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
204 | # checkin your Azure Web App publish settings, but sensitive information contained
205 | # in these scripts will be unencrypted
206 | PublishScripts/
207 |
208 | # NuGet Packages
209 | *.nupkg
210 | # NuGet Symbol Packages
211 | *.snupkg
212 | # The packages folder can be ignored because of Package Restore
213 | **/[Pp]ackages/*
214 | # except build/, which is used as an MSBuild target.
215 | !**/[Pp]ackages/build/
216 | # Uncomment if necessary however generally it will be regenerated when needed
217 | #!**/[Pp]ackages/repositories.config
218 | # NuGet v3's project.json files produces more ignorable files
219 | *.nuget.props
220 | *.nuget.targets
221 |
222 | # Microsoft Azure Build Output
223 | csx/
224 | *.build.csdef
225 |
226 | # Microsoft Azure Emulator
227 | ecf/
228 | rcf/
229 |
230 | # Windows Store app package directories and files
231 | AppPackages/
232 | BundleArtifacts/
233 | Package.StoreAssociation.xml
234 | _pkginfo.txt
235 | *.appx
236 | *.appxbundle
237 | *.appxupload
238 |
239 | # Visual Studio cache files
240 | # files ending in .cache can be ignored
241 | *.[Cc]ache
242 | # but keep track of directories ending in .cache
243 | !?*.[Cc]ache/
244 |
245 | # Others
246 | ClientBin/
247 | ~$*
248 | *~
249 | *.dbmdl
250 | *.dbproj.schemaview
251 | *.jfm
252 | *.pfx
253 | *.publishsettings
254 | orleans.codegen.cs
255 |
256 | # Including strong name files can present a security risk
257 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
258 | #*.snk
259 |
260 | # Since there are multiple workflows, uncomment next line to ignore bower_components
261 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
262 | #bower_components/
263 |
264 | # RIA/Silverlight projects
265 | Generated_Code/
266 |
267 | # Backup & report files from converting an old project file
268 | # to a newer Visual Studio version. Backup files are not needed,
269 | # because we have git ;-)
270 | _UpgradeReport_Files/
271 | Backup*/
272 | UpgradeLog*.XML
273 | UpgradeLog*.htm
274 | ServiceFabricBackup/
275 | *.rptproj.bak
276 |
277 | # SQL Server files
278 | *.mdf
279 | *.ldf
280 | *.ndf
281 |
282 | # Business Intelligence projects
283 | *.rdl.data
284 | *.bim.layout
285 | *.bim_*.settings
286 | *.rptproj.rsuser
287 | *- [Bb]ackup.rdl
288 | *- [Bb]ackup ([0-9]).rdl
289 | *- [Bb]ackup ([0-9][0-9]).rdl
290 |
291 | # Microsoft Fakes
292 | FakesAssemblies/
293 |
294 | # GhostDoc plugin setting file
295 | *.GhostDoc.xml
296 |
297 | # Node.js Tools for Visual Studio
298 | .ntvs_analysis.dat
299 | node_modules/
300 |
301 | # Visual Studio 6 build log
302 | *.plg
303 |
304 | # Visual Studio 6 workspace options file
305 | *.opt
306 |
307 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
308 | *.vbw
309 |
310 | # Visual Studio 6 auto-generated project file (contains which files were open etc.)
311 | *.vbp
312 |
313 | # Visual Studio 6 workspace and project file (working project files containing files to include in project)
314 | *.dsw
315 | *.dsp
316 |
317 | # Visual Studio 6 technical files
318 | *.ncb
319 | *.aps
320 |
321 | # Visual Studio LightSwitch build output
322 | **/*.HTMLClient/GeneratedArtifacts
323 | **/*.DesktopClient/GeneratedArtifacts
324 | **/*.DesktopClient/ModelManifest.xml
325 | **/*.Server/GeneratedArtifacts
326 | **/*.Server/ModelManifest.xml
327 | _Pvt_Extensions
328 |
329 | # Paket dependency manager
330 | .paket/paket.exe
331 | paket-files/
332 |
333 | # FAKE - F# Make
334 | .fake/
335 |
336 | # CodeRush personal settings
337 | .cr/personal
338 |
339 | # Python Tools for Visual Studio (PTVS)
340 | __pycache__/
341 | *.pyc
342 |
343 | # Cake - Uncomment if you are using it
344 | # tools/**
345 | # !tools/packages.config
346 |
347 | # Tabs Studio
348 | *.tss
349 |
350 | # Telerik's JustMock configuration file
351 | *.jmconfig
352 |
353 | # BizTalk build output
354 | *.btp.cs
355 | *.btm.cs
356 | *.odx.cs
357 | *.xsd.cs
358 |
359 | # OpenCover UI analysis results
360 | OpenCover/
361 |
362 | # Azure Stream Analytics local run output
363 | ASALocalRun/
364 |
365 | # MSBuild Binary and Structured Log
366 | *.binlog
367 |
368 | # NVidia Nsight GPU debugger configuration file
369 | *.nvuser
370 |
371 | # MFractors (Xamarin productivity tool) working folder
372 | .mfractor/
373 |
374 | # Local History for Visual Studio
375 | .localhistory/
376 |
377 | # Visual Studio History (VSHistory) files
378 | .vshistory/
379 |
380 | # BeatPulse healthcheck temp database
381 | healthchecksdb
382 |
383 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
384 | MigrationBackup/
385 |
386 | # Ionide (cross platform F# VS Code tools) working folder
387 | .ionide/
388 |
389 | # Fody - auto-generated XML schema
390 | FodyWeavers.xsd
391 |
392 | # VS Code files for those working on multiple tools
393 | .vscode/*
394 | !.vscode/settings.json
395 | !.vscode/tasks.json
396 | !.vscode/launch.json
397 | !.vscode/extensions.json
398 | *.code-workspace
399 |
400 | # Local History for Visual Studio Code
401 | .history/
402 |
403 | # Windows Installer files from build outputs
404 | *.cab
405 | *.msi
406 | *.msix
407 | *.msm
408 | *.msp
409 |
410 | # JetBrains Rider
411 | *.sln.iml
412 |
--------------------------------------------------------------------------------
/Directory.Build.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 17.14.1
5 | 1.22.0
6 | 2.9.3
7 | 2.0.3
8 | 3.1.1
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Directory.Build.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | runtime; build; native; contentfiles; analyzers; buildtransitive
6 | all
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) .NET Foundation and Contributors
2 | All Rights Reserved
3 |
4 | Licensed under the Apache License, Version 2.0 (the "License");
5 | you may not use this file except in compliance with the License.
6 | You may obtain a copy of the License at
7 |
8 | http://www.apache.org/licenses/LICENSE-2.0
9 |
10 | Unless required by applicable law or agreed to in writing, software
11 | distributed under the License is distributed on an "AS IS" BASIS,
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | See the License for the specific language governing permissions and
14 | limitations under the License.
--------------------------------------------------------------------------------
/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## About This Project
2 |
3 | This project contains integration tests for:
4 |
5 | - [xunit/xunit](https://github.com/xunit/xunit) in [`console`](console) and [`msbuild`](msbuild)
6 | - [xunit/xunit.analyzers](https://github.com/xunit/xunit.analyzers) in [`analyzers`](analyzers) and [`analyzers.vs2019`](analyzers.vs2019)
7 | - [xunit/visualstudio.xunit](https://github.com/xunit/visualstudio.xunit) in [`test-explorer`](test-explorer)
8 |
9 | To open an issue for this project, please visit the [core xUnit.net project issue tracker](https://github.com/xunit/xunit/issues).
10 |
11 | ## About xUnit.net
12 |
13 | [
](https://dotnetfoundation.org/projects/project-detail/xunit)
14 |
15 | xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework. Written by the original inventor of NUnit v2, xUnit.net is the latest technology for unit testing C#, F#, VB.NET and other .NET languages. xUnit.net works with ReSharper, CodeRush, TestDriven.NET and Xamarin. It is part of the [.NET Foundation](https://www.dotnetfoundation.org/), and operates under their [code of conduct](https://www.dotnetfoundation.org/code-of-conduct). It is licensed under [Apache 2](https://opensource.org/licenses/Apache-2.0) (an OSI approved license).
16 |
17 | For project documentation, please visit the [xUnit.net project home](https://xunit.net/).
18 |
--------------------------------------------------------------------------------
/analyzers.vs2019/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.cs]
2 | dotnet_diagnostic.xUnit1000.severity = warning
3 | dotnet_diagnostic.xUnit1001.severity = warning
4 | dotnet_diagnostic.xUnit1002.severity = warning
5 | dotnet_diagnostic.xUnit1003.severity = warning
6 | dotnet_diagnostic.xUnit1004.severity = warning
7 | dotnet_diagnostic.xUnit1005.severity = warning
8 | dotnet_diagnostic.xUnit1006.severity = warning
9 | dotnet_diagnostic.xUnit1007.severity = warning
10 | dotnet_diagnostic.xUnit1008.severity = warning
11 | dotnet_diagnostic.xUnit1009.severity = warning
12 | dotnet_diagnostic.xUnit1010.severity = warning
13 | dotnet_diagnostic.xUnit1011.severity = warning
14 | dotnet_diagnostic.xUnit1012.severity = warning
15 | dotnet_diagnostic.xUnit1013.severity = warning
16 | dotnet_diagnostic.xUnit1014.severity = warning
17 | dotnet_diagnostic.xUnit1015.severity = warning
18 | dotnet_diagnostic.xUnit1016.severity = warning
19 | dotnet_diagnostic.xUnit1017.severity = warning
20 | dotnet_diagnostic.xUnit1018.severity = warning
21 | dotnet_diagnostic.xUnit1019.severity = warning
22 | dotnet_diagnostic.xUnit1020.severity = warning
23 | dotnet_diagnostic.xUnit1021.severity = warning
24 | dotnet_diagnostic.xUnit1022.severity = warning
25 | dotnet_diagnostic.xUnit1023.severity = warning
26 | dotnet_diagnostic.xUnit1024.severity = warning
27 | dotnet_diagnostic.xUnit1025.severity = warning
28 | dotnet_diagnostic.xUnit1026.severity = warning
29 | dotnet_diagnostic.xUnit1027.severity = warning
30 | dotnet_diagnostic.xUnit1028.severity = warning
31 | dotnet_diagnostic.xUnit1029.severity = warning
32 | dotnet_diagnostic.xUnit1030.severity = warning
33 | dotnet_diagnostic.xUnit1031.severity = warning
34 | dotnet_diagnostic.xUnit1032.severity = warning
35 | dotnet_diagnostic.xUnit1033.severity = warning
36 | dotnet_diagnostic.xUnit1034.severity = warning
37 | dotnet_diagnostic.xUnit1035.severity = warning
38 | dotnet_diagnostic.xUnit1036.severity = warning
39 | dotnet_diagnostic.xUnit1037.severity = warning
40 | dotnet_diagnostic.xUnit1038.severity = warning
41 | dotnet_diagnostic.xUnit1039.severity = warning
42 | dotnet_diagnostic.xUnit1040.severity = warning
43 | dotnet_diagnostic.xUnit1041.severity = warning
44 | dotnet_diagnostic.xUnit1042.severity = warning
45 | dotnet_diagnostic.xUnit1043.severity = warning
46 | dotnet_diagnostic.xUnit1044.severity = warning
47 | dotnet_diagnostic.xUnit1045.severity = warning
48 | dotnet_diagnostic.xUnit1046.severity = warning
49 | dotnet_diagnostic.xUnit1047.severity = warning
50 | dotnet_diagnostic.xUnit1048.severity = warning
51 | dotnet_diagnostic.xUnit1049.severity = warning
52 | dotnet_diagnostic.xUnit1050.severity = warning
53 | dotnet_diagnostic.xUnit1051.severity = warning
54 |
55 | dotnet_diagnostic.xUnit2000.severity = warning
56 | dotnet_diagnostic.xUnit2001.severity = warning
57 | dotnet_diagnostic.xUnit2002.severity = warning
58 | dotnet_diagnostic.xUnit2003.severity = warning
59 | dotnet_diagnostic.xUnit2004.severity = warning
60 | dotnet_diagnostic.xUnit2005.severity = warning
61 | dotnet_diagnostic.xUnit2006.severity = warning
62 | dotnet_diagnostic.xUnit2007.severity = warning
63 | dotnet_diagnostic.xUnit2008.severity = warning
64 | dotnet_diagnostic.xUnit2009.severity = warning
65 | dotnet_diagnostic.xUnit2010.severity = warning
66 | dotnet_diagnostic.xUnit2011.severity = warning
67 | dotnet_diagnostic.xUnit2012.severity = warning
68 | dotnet_diagnostic.xUnit2013.severity = warning
69 | dotnet_diagnostic.xUnit2014.severity = warning
70 | dotnet_diagnostic.xUnit2015.severity = warning
71 | dotnet_diagnostic.xUnit2016.severity = warning
72 | dotnet_diagnostic.xUnit2017.severity = warning
73 | dotnet_diagnostic.xUnit2018.severity = warning
74 | dotnet_diagnostic.xUnit2020.severity = warning
75 | dotnet_diagnostic.xUnit2021.severity = warning
76 | dotnet_diagnostic.xUnit2022.severity = warning
77 | dotnet_diagnostic.xUnit2023.severity = warning
78 | dotnet_diagnostic.xUnit2024.severity = warning
79 | dotnet_diagnostic.xUnit2025.severity = warning
80 | dotnet_diagnostic.xUnit2026.severity = warning
81 | dotnet_diagnostic.xUnit2027.severity = warning
82 | dotnet_diagnostic.xUnit2028.severity = warning
83 | dotnet_diagnostic.xUnit2029.severity = warning
84 | dotnet_diagnostic.xUnit2030.severity = warning
85 |
86 | dotnet_diagnostic.xUnit3000.severity = warning
87 | dotnet_diagnostic.xUnit3001.severity = warning
88 | dotnet_diagnostic.xUnit3002.severity = warning
89 |
90 | dotnet_diagnostic.CA1050.severity = none
91 | dotnet_diagnostic.CA2211.severity = none
92 |
93 | dotnet_diagnostic.CS0067.severity = none
94 | dotnet_diagnostic.CS1998.severity = none
95 | dotnet_diagnostic.CS8321.severity = none
96 | dotnet_diagnostic.CS8604.severity = none
97 | dotnet_diagnostic.CS8625.severity = none
98 |
99 | dotnet_diagnostic.IDE0039.severity = none
100 | dotnet_diagnostic.IDE0040.severity = none
101 | dotnet_diagnostic.IDE0051.severity = none
102 | dotnet_diagnostic.IDE0052.severity = none
103 | dotnet_diagnostic.IDE0060.severity = none
104 | dotnet_diagnostic.IDE0062.severity = none
105 | dotnet_diagnostic.IDE1006.severity = none
106 |
--------------------------------------------------------------------------------
/analyzers.vs2019/analyzers.vs2019.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.34729.46
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "v2-full", "v2-full\v2-full.csproj", "{366C2869-7CB6-455A-8F9F-CD75259CAC51}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "v3-full", "v3-full\v3-full.csproj", "{B5FD6A8B-8C9F-4D0F-B27E-874E519949B1}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {366C2869-7CB6-455A-8F9F-CD75259CAC51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {366C2869-7CB6-455A-8F9F-CD75259CAC51}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {366C2869-7CB6-455A-8F9F-CD75259CAC51}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {366C2869-7CB6-455A-8F9F-CD75259CAC51}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {B5FD6A8B-8C9F-4D0F-B27E-874E519949B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {B5FD6A8B-8C9F-4D0F-B27E-874E519949B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {B5FD6A8B-8C9F-4D0F-B27E-874E519949B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {B5FD6A8B-8C9F-4D0F-B27E-874E519949B1}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {A7E64E86-C051-48BE-A2F5-75A8D179EE16}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/analyzers.vs2019/v2-full/v2-full.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {366C2869-7CB6-455A-8F9F-CD75259CAC51}
8 | Library
9 | Properties
10 | v2-full
11 | v4.7.2
12 | 512
13 | true
14 | 9.0
15 | enable
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 | %(RecursiveDir)%(Filename)%(Extension)
37 |
38 |
39 | %(RecursiveDir)%(Filename)%(Extension)
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | $(XunitAnalyzersVersion)
49 | analyzers
50 | all
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/analyzers.vs2019/v3-full/v3-full.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {B5FD6A8B-8C9F-4D0F-B27E-874E519949B1}
8 | Library
9 | Properties
10 | v2-full
11 | v4.7.2
12 | 512
13 | true
14 | 9.0
15 | enable
16 |
17 |
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 |
36 | %(RecursiveDir)%(Filename)%(Extension)
37 |
38 |
39 | %(RecursiveDir)%(Filename)%(Extension)
40 |
41 |
42 |
43 |
44 |
45 |
46 | $(XunitAnalyzersVersion)
47 | analyzers
48 | all
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/analyzers/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.cs]
2 | dotnet_diagnostic.xUnit1000.severity = warning
3 | dotnet_diagnostic.xUnit1001.severity = warning
4 | dotnet_diagnostic.xUnit1002.severity = warning
5 | dotnet_diagnostic.xUnit1003.severity = warning
6 | dotnet_diagnostic.xUnit1004.severity = warning
7 | dotnet_diagnostic.xUnit1005.severity = warning
8 | dotnet_diagnostic.xUnit1006.severity = warning
9 | dotnet_diagnostic.xUnit1007.severity = warning
10 | dotnet_diagnostic.xUnit1008.severity = warning
11 | dotnet_diagnostic.xUnit1009.severity = warning
12 | dotnet_diagnostic.xUnit1010.severity = warning
13 | dotnet_diagnostic.xUnit1011.severity = warning
14 | dotnet_diagnostic.xUnit1012.severity = warning
15 | dotnet_diagnostic.xUnit1013.severity = warning
16 | dotnet_diagnostic.xUnit1014.severity = warning
17 | dotnet_diagnostic.xUnit1015.severity = warning
18 | dotnet_diagnostic.xUnit1016.severity = warning
19 | dotnet_diagnostic.xUnit1017.severity = warning
20 | dotnet_diagnostic.xUnit1018.severity = warning
21 | dotnet_diagnostic.xUnit1019.severity = warning
22 | dotnet_diagnostic.xUnit1020.severity = warning
23 | dotnet_diagnostic.xUnit1021.severity = warning
24 | dotnet_diagnostic.xUnit1022.severity = warning
25 | dotnet_diagnostic.xUnit1023.severity = warning
26 | dotnet_diagnostic.xUnit1024.severity = warning
27 | dotnet_diagnostic.xUnit1025.severity = warning
28 | dotnet_diagnostic.xUnit1026.severity = warning
29 | dotnet_diagnostic.xUnit1027.severity = warning
30 | dotnet_diagnostic.xUnit1028.severity = warning
31 | dotnet_diagnostic.xUnit1029.severity = warning
32 | dotnet_diagnostic.xUnit1030.severity = warning
33 | dotnet_diagnostic.xUnit1031.severity = warning
34 | dotnet_diagnostic.xUnit1032.severity = warning
35 | dotnet_diagnostic.xUnit1033.severity = warning
36 | dotnet_diagnostic.xUnit1034.severity = warning
37 | dotnet_diagnostic.xUnit1035.severity = warning
38 | dotnet_diagnostic.xUnit1036.severity = warning
39 | dotnet_diagnostic.xUnit1037.severity = warning
40 | dotnet_diagnostic.xUnit1038.severity = warning
41 | dotnet_diagnostic.xUnit1039.severity = warning
42 | dotnet_diagnostic.xUnit1040.severity = warning
43 | dotnet_diagnostic.xUnit1041.severity = warning
44 | dotnet_diagnostic.xUnit1042.severity = warning
45 | dotnet_diagnostic.xUnit1043.severity = warning
46 | dotnet_diagnostic.xUnit1044.severity = warning
47 | dotnet_diagnostic.xUnit1045.severity = warning
48 | dotnet_diagnostic.xUnit1046.severity = warning
49 | dotnet_diagnostic.xUnit1047.severity = warning
50 | dotnet_diagnostic.xUnit1048.severity = warning
51 | dotnet_diagnostic.xUnit1049.severity = warning
52 | dotnet_diagnostic.xUnit1050.severity = warning
53 | dotnet_diagnostic.xUnit1051.severity = warning
54 |
55 | dotnet_diagnostic.xUnit2000.severity = warning
56 | dotnet_diagnostic.xUnit2001.severity = warning
57 | dotnet_diagnostic.xUnit2002.severity = warning
58 | dotnet_diagnostic.xUnit2003.severity = warning
59 | dotnet_diagnostic.xUnit2004.severity = warning
60 | dotnet_diagnostic.xUnit2005.severity = warning
61 | dotnet_diagnostic.xUnit2006.severity = warning
62 | dotnet_diagnostic.xUnit2007.severity = warning
63 | dotnet_diagnostic.xUnit2008.severity = warning
64 | dotnet_diagnostic.xUnit2009.severity = warning
65 | dotnet_diagnostic.xUnit2010.severity = warning
66 | dotnet_diagnostic.xUnit2011.severity = warning
67 | dotnet_diagnostic.xUnit2012.severity = warning
68 | dotnet_diagnostic.xUnit2013.severity = warning
69 | dotnet_diagnostic.xUnit2014.severity = warning
70 | dotnet_diagnostic.xUnit2015.severity = warning
71 | dotnet_diagnostic.xUnit2016.severity = warning
72 | dotnet_diagnostic.xUnit2017.severity = warning
73 | dotnet_diagnostic.xUnit2018.severity = warning
74 | dotnet_diagnostic.xUnit2020.severity = warning
75 | dotnet_diagnostic.xUnit2021.severity = warning
76 | dotnet_diagnostic.xUnit2022.severity = warning
77 | dotnet_diagnostic.xUnit2023.severity = warning
78 | dotnet_diagnostic.xUnit2024.severity = warning
79 | dotnet_diagnostic.xUnit2025.severity = warning
80 | dotnet_diagnostic.xUnit2026.severity = warning
81 | dotnet_diagnostic.xUnit2027.severity = warning
82 | dotnet_diagnostic.xUnit2028.severity = warning
83 | dotnet_diagnostic.xUnit2029.severity = warning
84 | dotnet_diagnostic.xUnit2030.severity = warning
85 | dotnet_diagnostic.xUnit2031.severity = warning
86 | dotnet_diagnostic.xUnit2032.severity = warning
87 |
88 | dotnet_diagnostic.xUnit3000.severity = warning
89 | dotnet_diagnostic.xUnit3001.severity = warning
90 | dotnet_diagnostic.xUnit3002.severity = warning
91 |
92 | dotnet_diagnostic.CA1050.severity = none
93 | dotnet_diagnostic.CA2211.severity = none
94 |
95 | dotnet_diagnostic.CS0067.severity = none
96 | dotnet_diagnostic.CS1998.severity = none
97 | dotnet_diagnostic.CS8321.severity = none
98 | dotnet_diagnostic.CS8604.severity = none
99 | dotnet_diagnostic.CS8625.severity = none
100 |
101 | dotnet_diagnostic.IDE0039.severity = none
102 | dotnet_diagnostic.IDE0040.severity = none
103 | dotnet_diagnostic.IDE0051.severity = none
104 | dotnet_diagnostic.IDE0052.severity = none
105 | dotnet_diagnostic.IDE0060.severity = none
106 | dotnet_diagnostic.IDE0062.severity = none
107 | dotnet_diagnostic.IDE0290.severity = none
108 | dotnet_diagnostic.IDE1006.severity = none
109 |
--------------------------------------------------------------------------------
/analyzers/analyzers.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.0.31710.8
5 | MinimumVisualStudioVersion = 15.0.26124.0
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "v2-abstractions", "v2-abstractions\v2-abstractions.csproj", "{5C705559-DCE1-41B4-939F-C8F826C816AE}"
7 | EndProject
8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "v2-core", "v2-core\v2-core.csproj", "{593DA203-624A-408C-821C-488FB23A9F85}"
9 | EndProject
10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "v2-execution", "v2-execution\v2-execution.csproj", "{224BC22A-E272-4A64-86B4-B439B98E79C1}"
11 | EndProject
12 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "v2-full", "v2-full\v2-full.csproj", "{2FDBD2A5-8EB3-4CC3-922F-78F96F68B636}"
13 | EndProject
14 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "v3-full", "v3-full\v3-full.csproj", "{6EBE9509-9BCD-47A8-B17B-1C24DE0F3FD7}"
15 | EndProject
16 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Meta", "Meta", "{E9BADC05-3257-4E54-AB86-1B9C63D84C69}"
17 | ProjectSection(SolutionItems) = preProject
18 | .editorconfig = .editorconfig
19 | ..\Directory.Build.props = ..\Directory.Build.props
20 | EndProjectSection
21 | EndProject
22 | Global
23 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
24 | Debug|Any CPU = Debug|Any CPU
25 | Release|Any CPU = Release|Any CPU
26 | EndGlobalSection
27 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
28 | {5C705559-DCE1-41B4-939F-C8F826C816AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29 | {5C705559-DCE1-41B4-939F-C8F826C816AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
30 | {5C705559-DCE1-41B4-939F-C8F826C816AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
31 | {5C705559-DCE1-41B4-939F-C8F826C816AE}.Release|Any CPU.Build.0 = Release|Any CPU
32 | {593DA203-624A-408C-821C-488FB23A9F85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33 | {593DA203-624A-408C-821C-488FB23A9F85}.Debug|Any CPU.Build.0 = Debug|Any CPU
34 | {593DA203-624A-408C-821C-488FB23A9F85}.Release|Any CPU.ActiveCfg = Release|Any CPU
35 | {593DA203-624A-408C-821C-488FB23A9F85}.Release|Any CPU.Build.0 = Release|Any CPU
36 | {224BC22A-E272-4A64-86B4-B439B98E79C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37 | {224BC22A-E272-4A64-86B4-B439B98E79C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
38 | {224BC22A-E272-4A64-86B4-B439B98E79C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
39 | {224BC22A-E272-4A64-86B4-B439B98E79C1}.Release|Any CPU.Build.0 = Release|Any CPU
40 | {2FDBD2A5-8EB3-4CC3-922F-78F96F68B636}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41 | {2FDBD2A5-8EB3-4CC3-922F-78F96F68B636}.Debug|Any CPU.Build.0 = Debug|Any CPU
42 | {2FDBD2A5-8EB3-4CC3-922F-78F96F68B636}.Release|Any CPU.ActiveCfg = Release|Any CPU
43 | {2FDBD2A5-8EB3-4CC3-922F-78F96F68B636}.Release|Any CPU.Build.0 = Release|Any CPU
44 | {6EBE9509-9BCD-47A8-B17B-1C24DE0F3FD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
45 | {6EBE9509-9BCD-47A8-B17B-1C24DE0F3FD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
46 | {6EBE9509-9BCD-47A8-B17B-1C24DE0F3FD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
47 | {6EBE9509-9BCD-47A8-B17B-1C24DE0F3FD7}.Release|Any CPU.Build.0 = Release|Any CPU
48 | EndGlobalSection
49 | GlobalSection(SolutionProperties) = preSolution
50 | HideSolutionNode = FALSE
51 | EndGlobalSection
52 | GlobalSection(ExtensibilityGlobals) = postSolution
53 | SolutionGuid = {B09F2014-50A6-45E2-B26C-CAA329081FA2}
54 | EndGlobalSection
55 | EndGlobal
56 |
--------------------------------------------------------------------------------
/analyzers/common/1xxx_Usage/xUnit1000.cs:
--------------------------------------------------------------------------------
1 | using Xunit;
2 |
3 | class xUnit1000
4 | {
5 | [Fact]
6 | public void TestMethod()
7 | { }
8 | }
9 |
--------------------------------------------------------------------------------
/analyzers/common/1xxx_Usage/xUnit1001.cs:
--------------------------------------------------------------------------------
1 | using Xunit;
2 |
3 | public class xUnit1001
4 | {
5 | [Fact]
6 | public void TestMethod(int _)
7 | { }
8 | }
9 |
--------------------------------------------------------------------------------
/analyzers/common/1xxx_Usage/xUnit1002.cs:
--------------------------------------------------------------------------------
1 | #pragma warning disable xUnit1003 // Theory methods must have test data
2 | #pragma warning disable xUnit1006 // Theory methods should have parameters
3 |
4 | using Xunit;
5 |
6 | public class xUnit1002
7 | {
8 | [Fact, Theory]
9 | public void TestMethod()
10 | { }
11 | }
12 |
--------------------------------------------------------------------------------
/analyzers/common/1xxx_Usage/xUnit1003.cs:
--------------------------------------------------------------------------------
1 | using Xunit;
2 |
3 | public class xUnit1003
4 | {
5 | [Theory]
6 | public void TestMethod(int _) { }
7 | }
8 |
--------------------------------------------------------------------------------
/analyzers/common/1xxx_Usage/xUnit1004.cs:
--------------------------------------------------------------------------------
1 | using Xunit;
2 |
3 | public class xUnit1004
4 | {
5 | [Fact(Skip = "This is a flaky test")]
6 | public void TestMethod() { }
7 |
8 | #if XUNIT_V3 && NETCOREAPP
9 |
10 | [Fact(Skip = "Requires Windows",
11 | SkipUnless = nameof(System.OperatingSystem.IsWindows),
12 | SkipType = typeof(System.OperatingSystem))]
13 | public void WindowsTest() { }
14 |
15 | #endif
16 | }
17 |
--------------------------------------------------------------------------------
/analyzers/common/1xxx_Usage/xUnit1005.cs:
--------------------------------------------------------------------------------
1 | using Xunit;
2 |
3 | public class xUnit1005
4 | {
5 | [Fact, InlineData(1)]
6 | public void TestMethod()
7 | { }
8 | }
9 |
--------------------------------------------------------------------------------
/analyzers/common/1xxx_Usage/xUnit1006.cs:
--------------------------------------------------------------------------------
1 | #pragma warning disable xUnit1011 // There is no matching method parameter
2 |
3 | using Xunit;
4 |
5 | public class xUnit1006
6 | {
7 | [Theory]
8 | [InlineData(12, "book")]
9 | public void TestMethod()
10 | { }
11 | }
12 |
--------------------------------------------------------------------------------
/analyzers/common/1xxx_Usage/xUnit1007.cs:
--------------------------------------------------------------------------------
1 | #pragma warning disable xUnit1050 // The class referenced by the ClassData attribute returns untyped data rows
2 |
3 | using System.Collections.Generic;
4 | using System.Threading;
5 | using Xunit;
6 |
7 | class PlainClass { }
8 |
9 | class ClassWithAsyncObjectArray : IAsyncEnumerable