-
Notifications
You must be signed in to change notification settings - Fork 270
/
Copy pathResources.zh-Hans.xlf
615 lines (615 loc) · 34.1 KB
/
Resources.zh-Hans.xlf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="zh-Hans" original="../Resources.resx">
<body>
<trans-unit id="AssemblyCleanupShouldBeValidDescription">
<source>Methods marked with [AssemblyCleanup] should follow the following layout to be valid:
- be 'public'
- be 'static'
- not be generic nor defined on a generic class
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">标记有 [AssemblyCleanup] 的方法应遵循以下布局才会有效:
- 是 “public”
- 是 “static”
- 不是泛型的,也不是在泛型类上定义的
- 不采用任何参数
- 返回类型应为 "void"、"Task" 或 "ValueTask"
- 不是 “async void”
- 不是特殊方法(终结器、运算符...)。</target>
<note />
</trans-unit>
<trans-unit id="AssemblyCleanupShouldBeValidMessageFormat">
<source>AssemblyCleanup method '{0}' signature is invalid</source>
<target state="translated">AssemblyCleanup 方法“{0}”签名无效</target>
<note />
</trans-unit>
<trans-unit id="AssemblyCleanupShouldBeValidTitle">
<source>AssemblyCleanup methods should have valid layout</source>
<target state="translated">AssemblyCleanup 方法应具有有效的布局</target>
<note />
</trans-unit>
<trans-unit id="AssemblyInitializeShouldBeValidDescription">
<source>Methods marked with [AssemblyInitialize] should follow the following layout to be valid:
- be 'public'
- be 'static'
- not be generic nor be defined on a generic class
- take a single parameter of type 'TestContext'
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">标记有 [AssemblyInitialize] 的方法应遵循以下布局才会有效:
- 是 “public”
- 是 “static”
- 不是泛型的,也不是在泛型类上定义的
- 采用 “TestContext” 类型的单个参数
- 返回类型应为 "void"、"Task" 或 "ValueTask"
- 不是 “async void”
- 不是特殊方法(终结器、运算符...)。</target>
<note />
</trans-unit>
<trans-unit id="AssemblyInitializeShouldBeValidMessageFormat">
<source>AssemblyInitialize method '{0}' signature is invalid</source>
<target state="translated">AssemblyInitialize 方法“{0}”签名无效</target>
<note />
</trans-unit>
<trans-unit id="AssemblyInitializeShouldBeValidTitle">
<source>AssemblyInitialize methods should have valid layout</source>
<target state="translated">AssemblyInitialize 方法应具有有效的布局</target>
<note />
</trans-unit>
<trans-unit id="AssertionArgsShouldAvoidConditionalAccessMessageFormat">
<source>Prefer adding an additional assertion that checks for null</source>
<target state="translated">首选添加检查 null 的其他断言</target>
<note />
</trans-unit>
<trans-unit id="AssertionArgsShouldAvoidConditionalAccessTitle">
<source>Avoid conditional access in assertions</source>
<target state="translated">避免断言中的条件访问</target>
<note />
</trans-unit>
<trans-unit id="AssertionArgsShouldBePassedInCorrectOrderDescription">
<source>'Assert.AreEqual', 'Assert.AreNotEqual', 'Assert.AreSame' and 'Assert.AreNotSame' expects the expected value to be passed first and the actual value to be passed as second argument.</source>
<target state="translated">“Assert.AreEqual”、“Assert.AreNotEqual”、“Assert.AreSame” 和 “Assert.AreNotSame” 要求先传递预期值,然后将实际值作为第二个参数传递。</target>
<note />
</trans-unit>
<trans-unit id="AssertionArgsShouldBePassedInCorrectOrderMessageFormat">
<source>Assertion arguments should be passed in the correct order. 'actual' and 'expected'/'notExpected' arguments have been swapped.</source>
<target state="translated">应按正确的顺序传递断言参数。已交换 “actual” 和 “expected”/“notExpected” 参数。</target>
<note />
</trans-unit>
<trans-unit id="AssertionArgsShouldBePassedInCorrectOrderTitle">
<source>Assertion arguments should be passed in the correct order</source>
<target state="translated">应按正确的顺序传递断言参数</target>
<note />
</trans-unit>
<trans-unit id="AvoidExpectedExceptionAttributeDescription">
<source>Prefer 'Assert.ThrowsException' or 'Assert.ThrowsExceptionAsync' over '[ExpectedException]' as it ensures that only the expected call throws the expected exception. The assert APIs also provide more flexibility and allow you to assert extra properties of the exeption.</source>
<target state="translated">首选 "Assert.ThrowsException" 或 "Assert.ThrowsExceptionAsync" 而不是 "[ExpectedException]",因为它确保只有预期调用才会引发预期异常。断言 API 还提供更多的灵活性,并允许你断言异常的额外属性。</target>
<note />
</trans-unit>
<trans-unit id="AvoidExpectedExceptionAttributeMessageFormat">
<source>Prefer 'Assert.ThrowsException/ThrowsExceptionAsync' over '[ExpectedException]'</source>
<target state="translated">首选 "Assert.ThrowsException/ThrowsExceptionAsync" 而不是 "[ExpectedException]"</target>
<note />
</trans-unit>
<trans-unit id="AvoidExpectedExceptionAttributeTitle">
<source>Avoid '[ExpectedException]'</source>
<target state="translated">避免 "[ExpectedException]"</target>
<note />
</trans-unit>
<trans-unit id="ClassCleanupShouldBeValidDescription">
<source>Methods marked with [ClassCleanup] should follow the following layout to be valid:
- be 'public'
- not be 'static'
- not be generic nor defined on a generic class
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">标记有 [ClassCleanup] 的方法应遵循以下布局才会有效:
- 是 “public”
- 不是 “static”
- 不是泛型的,也不是在泛型类上定义的
- 不采用任何参数
- 返回类型应为 "void"、"Task" 或 "ValueTask"
- 不是 “async void”
- 不是特殊方法(终结器、运算符...)。</target>
<note />
</trans-unit>
<trans-unit id="ClassCleanupShouldBeValidMessageFormat">
<source>ClassCleanup method '{0}' signature is invalid</source>
<target state="translated">ClassCleanup 方法“{0}”签名无效</target>
<note />
</trans-unit>
<trans-unit id="ClassCleanupShouldBeValidTitle">
<source>ClassCleanup methods should have valid layout</source>
<target state="translated">ClassCleanup 方法应具有有效的布局</target>
<note />
</trans-unit>
<trans-unit id="ClassInitializeShouldBeValidDescription">
<source>Methods marked with [ClassInitialize] should follow the following layout to be valid:
- be 'public'
- be 'static'
- not be generic nor be defined on a generic class
- take a single parameter of type 'TestContext'
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'.</source>
<target state="needs-review-translation">标记有 [ClassInitialize] 的方法应遵循以下布局才会有效:
- 是 “public”
- 是 “static”
- 不是泛型的,也不是在泛型类上定义的
- 采用 “TestContext” 类型的单个参数
- 返回类型应为 "void"、"Task" 或 "ValueTask"
- 不是 “async void”
- 不是特殊方法(终结器、运算符...)。</target>
<note />
</trans-unit>
<trans-unit id="ClassInitializeShouldBeValidMessageFormat">
<source>ClassInitialize method '{0}' signature is invalid</source>
<target state="translated">ClassInitialize 方法“{0}”签名无效</target>
<note />
</trans-unit>
<trans-unit id="ClassInitializeShouldBeValidTitle">
<source>ClassInitialize methods should have valid layout</source>
<target state="translated">ClassInitialize 方法应具有有效的布局</target>
<note />
</trans-unit>
<trans-unit id="DataRowShouldBeValidDescription">
<source>DataRow entry should have the following layout to be valid:
- should only be set on a test method;
- argument count should match method argument count;
- argument type should match method argument type.</source>
<target state="translated">DataRow 条目应具有以下布局才能有效:
- 应仅在测试方法上进行设置;
- 参数计数应与方法参数计数匹配;
- 参数类型应与方法参数类型匹配。</target>
<note />
</trans-unit>
<trans-unit id="DataRowShouldBeValidMessageFormat_ArgumentCountMismatch">
<source>DataRow argument count should match method parameter count (constructor arguments: {0}, method parameters: {1})</source>
<target state="translated">DataRow 参数计数应与方法参数计数匹配(构造函数参数: {0},方法参数: {1})</target>
<note />
</trans-unit>
<trans-unit id="DataRowShouldBeValidMessageFormat_ArgumentTypeMismatch">
<source>DataRow argument type should match method parameter type. Mismatches occur at indices: {0}</source>
<target state="translated">DataRow 参数类型应与方法参数类型匹配。索引处出现不匹配: {0}</target>
<note />
</trans-unit>
<trans-unit id="DataRowShouldBeValidMessageFormat_OnTestMethod">
<source>DataRow should only be set on a test method</source>
<target state="translated">DataRow 应仅在测试方法上进行设置</target>
<note />
</trans-unit>
<trans-unit id="DataRowShouldBeValidTitle">
<source>DataRow should be valid</source>
<target state="translated">DataRow 应有效</target>
<note />
</trans-unit>
<trans-unit id="DoNotNegateBooleanAssertionMessageFormat">
<source>Do not negate boolean assertions, instead use the opposite assertion</source>
<target state="translated">不要对布尔断言求反,而是使用相反的断言</target>
<note />
</trans-unit>
<trans-unit id="DoNotNegateBooleanAssertionTitle">
<source>Do not negate boolean assertions</source>
<target state="translated">不要对布尔断言求反</target>
<note />
</trans-unit>
<trans-unit id="DoNotStoreStaticTestContextAnalyzerMessageFormat">
<source>Do not store TestContext in a static member</source>
<target state="translated">不要将 TestContext 存储在静态成员中</target>
<note />
</trans-unit>
<trans-unit id="DoNotStoreStaticTestContextAnalyzerTitle">
<source>Do not store TestContext in a static member</source>
<target state="translated">不要将 TestContext 存储在静态成员中</target>
<note />
</trans-unit>
<trans-unit id="DoNotUseSystemDescriptionAttributeDescription">
<source>'System.ComponentModel.DescriptionAttribute' has no effect in the context of tests and you likely wanted to use 'Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute' instead.</source>
<target state="translated">“System.ComponentModel.DescriptionAttribute” 在测试上下文中无效,你可能想要改用 “Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute”。</target>
<note />
</trans-unit>
<trans-unit id="DoNotUseSystemDescriptionAttributeMessageFormat">
<source>Did you mean to be using 'Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute'?</source>
<target state="translated">是否打算使用 “Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute”?</target>
<note />
</trans-unit>
<trans-unit id="DoNotUseSystemDescriptionAttributeTitle">
<source>'System.ComponentModel.DescriptionAttribute' has no effect on test methods</source>
<target state="translated">“System.ComponentModel.DescriptionAttribute” 对测试方法没有影响</target>
<note />
</trans-unit>
<trans-unit id="PreferAssertFailOverAlwaysFalseConditionsMessageFormat">
<source>Use 'Assert.Fail' instead of an always-failing 'Assert.{0}' assert</source>
<target state="translated">使用 “Assert.Fail” 而不是始终失败的 “Assert.{0}” 断言</target>
<note />
</trans-unit>
<trans-unit id="PreferAssertFailOverAlwaysFalseConditionsTitle">
<source>Use 'Assert.Fail' instead of an always-failing assert</source>
<target state="translated">使用 “Assert.Fail” 而不是始终失败的断言</target>
<note />
</trans-unit>
<trans-unit id="ReviewAlwaysTrueAssertConditionAnalyzerMessageFormat">
<source>Review or remove the assertion as its condition is known to be always true</source>
<target state="translated">查看或移除断言,因为已知其条件始终为 true</target>
<note />
</trans-unit>
<trans-unit id="ReviewAlwaysTrueAssertConditionAnalyzerTitle">
<source>Assertion condition is always true</source>
<target state="translated">断言条件始终为 true</target>
<note />
</trans-unit>
<trans-unit id="PreferConstructorOverTestInitializeMessageFormat">
<source>Prefer constructors over TestInitialize methods</source>
<target state="translated">首选构造函数而不是 TestInitialize 方法</target>
<note />
</trans-unit>
<trans-unit id="PreferConstructorOverTestInitializeTitle">
<source>Prefer constructors over TestInitialize methods</source>
<target state="translated">首选构造函数而不是 TestInitialize 方法</target>
<note />
</trans-unit>
<trans-unit id="PreferDisposeOverTestCleanupMessageFormat">
<source>Prefer 'Dispose' over TestCleanup methods</source>
<target state="translated">首选 “Dispose” 而不是 TestCleanup 方法</target>
<note />
</trans-unit>
<trans-unit id="PreferDisposeOverTestCleanupTitle">
<source>Prefer 'Dispose' over TestCleanup methods</source>
<target state="translated">首选 “Dispose” 而不是 TestCleanup 方法</target>
<note />
</trans-unit>
<trans-unit id="PreferTestCleanupOverDisposeMessageFormat">
<source>Prefer TestCleanup over 'Dispose' methods</source>
<target state="translated">首选 TestCleanup 而不是 “Dispose” 方法</target>
<note />
</trans-unit>
<trans-unit id="PreferTestCleanupOverDisposeTitle">
<source>Prefer TestCleanup over 'Dispose' methods</source>
<target state="translated">首选 TestCleanup 而不是 “Dispose” 方法</target>
<note />
</trans-unit>
<trans-unit id="PreferTestInitializeOverConstructorMessageFormat">
<source>Prefer TestInitialize methods over constructors</source>
<target state="translated">首选 TestInitialize 方法而不是构造函数</target>
<note />
</trans-unit>
<trans-unit id="PreferTestInitializeOverConstructorTitle">
<source>Prefer TestInitialize methods over constructors</source>
<target state="translated">首选 TestInitialize 方法而不是构造函数</target>
<note />
</trans-unit>
<trans-unit id="PublicMethodShouldBeTestMethodAnalyzerDescription">
<source>Public methods should be test methods (marked with `[TestMethod]`).</source>
<target state="new">Public methods should be test methods (marked with `[TestMethod]`).</target>
<note />
</trans-unit>
<trans-unit id="PublicMethodShouldBeTestMethodAnalyzerFormat">
<source>Public method '{0}' should be a test method</source>
<target state="new">Public method '{0}' should be a test method</target>
<note />
</trans-unit>
<trans-unit id="PublicMethodShouldBeTestMethodAnalyzerTitle">
<source>Public methods should be test methods</source>
<target state="new">Public methods should be test methods</target>
<note />
</trans-unit>
<trans-unit id="PublicTypeShouldBeTestClassDescription">
<source>It's considered a good practice to have only test classes marked public in a test project.</source>
<target state="translated">在测试项目中仅将测试类标记为“公开”是一种不错的做法。</target>
<note />
</trans-unit>
<trans-unit id="PublicTypeShouldBeTestClassMessageFormat">
<source>Public type '{0}' should be marked with '[TestClass]' or changed to 'internal'</source>
<target state="translated">公共类型“{0}”应标记为“[TestClass]”或更改为“internal”</target>
<note />
</trans-unit>
<trans-unit id="PublicTypeShouldBeTestClassTitle">
<source>Public types should be test classes</source>
<target state="translated">公共类型应为测试类</target>
<note />
</trans-unit>
<trans-unit id="UseClassCleanupBehaviorEndOfClassDescription">
<source>Without using 'ClassCleanupBehavior.EndOfClass', the '[ClassCleanup]' will by default be run at the end of the assembly and not at the end of the class.</source>
<target state="translated">如果不使用 "ClassCleanupBehavior.EndOfClass","[ClassCleanup]" 将默认在程序集末尾运行,而不是在类的末尾运行。</target>
<note />
</trans-unit>
<trans-unit id="UseClassCleanupBehaviorEndOfClassMessageFormat">
<source>Use 'ClassCleanupBehavior.EndOfClass' with the '[ClassCleanup]'</source>
<target state="translated">将 "ClassCleanupBehavior.EndOfClass" 与 "[ClassCleanup]" 配合使用</target>
<note />
</trans-unit>
<trans-unit id="UseClassCleanupBehaviorEndOfClassTitle">
<source>Use 'ClassCleanupBehavior.EndOfClass' with the '[ClassCleanup]'</source>
<target state="translated">将 "ClassCleanupBehavior.EndOfClass" 与 "[ClassCleanup]" 配合使用</target>
<note />
</trans-unit>
<trans-unit id="TestClassShouldBeValidDescription">
<source>Test classes, classes marked with the '[TestClass]' attribute, should respect the following layout to be considered valid by MSTest:
- it should be 'public' (or 'internal' if '[assembly: DiscoverInternals]' attribute is set)
- it should not be 'static' (except if it contains only 'AssemblyInitialize' and/or 'AssemblyCleanup' methods)
- it should not be generic.</source>
<target state="translated">测试类(标记有“[TestClass]”属性的类)应遵循以下布局,才能被 MSTest 视为有效:
- 它应为 "public" (如果设置了“[assembly: DiscoverInternals]”属性,则应为 "internal")
- 它不应为 "static" (除非它只包含 "AssemblyInitialize" 和/或 "AssemblyCleanup" 方法)
- 它不应是泛型的。</target>
<note />
</trans-unit>
<trans-unit id="TestClassShouldBeValidMessageFormat_NotStatic">
<source>Test class '{0}' should not be 'static'</source>
<target state="translated">测试类“{0}”不应为“static”</target>
<note />
</trans-unit>
<trans-unit id="TestClassShouldBeValidMessageFormat_Public">
<source>Test class '{0}' should be 'public'</source>
<target state="translated">测试类“{0}”应为“public”</target>
<note />
</trans-unit>
<trans-unit id="TestClassShouldBeValidMessageFormat_PublicOrInternal">
<source>Test class '{0}' should be 'public' or 'internal'</source>
<target state="translated">测试类“{0}”应为“public”或“internal”</target>
<note />
</trans-unit>
<trans-unit id="TestClassShouldBeValidTitle">
<source>Test classes should have valid layout</source>
<target state="translated">测试类应具有有效的布局</target>
<note />
</trans-unit>
<trans-unit id="TestClassShouldHaveTestMethodDescription">
<source>Test class should have at least one test method or be 'static' with method(s) marked by '[AssemblyInitialization]' and/or '[AssemblyCleanup]'.</source>
<target state="translated">测试类应至少有一个测试方法,或者应为 "static" 且方法带有 "[AssemblyInitialization]" 和/或 "[AssemblyInitialization]"。</target>
<note />
</trans-unit>
<trans-unit id="TestClassShouldHaveTestMethodMessageFormat">
<source>Test class '{0}' should have at least one test method or be 'static' with method(s) marked by '[AssemblyInitialization]' and/or '[AssemblyCleanup]'</source>
<target state="translated">测试类“{0}”应至少有一个测试方法,或者应为 "static" 且方法带有 "[AssemblyInitialization]" 和/或 "[AssemblyInitialization]"。</target>
<note />
</trans-unit>
<trans-unit id="TestClassShouldHaveTestMethodTitle">
<source>Test class should have test method</source>
<target state="translated">测试类应具有测试方法</target>
<note />
</trans-unit>
<trans-unit id="TestCleanupShouldBeValidDescription">
<source>Methods marked with [TestCleanup] should follow the following layout to be valid:
- be 'public'
- not be 'static'
- not be generic or be defined on a generic class
- not be 'abstract'
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">标记有 [TestCleanup] 的方法应遵循以下布局才会有效:
- 是 “public”
- 不是 “static”
- 不是泛型的,也不是在泛型类上定义的
- 不是 “abstract”
- 不采用任何参数
- 返回类型应为 "void"、"Task" 或 "ValueTask"
- 不是 “async void”
- 不是特殊方法(终结器、运算符...)。</target>
<note />
</trans-unit>
<trans-unit id="TestCleanupShouldBeValidMessageFormat">
<source>TestCleanup method '{0}' signature is invalid</source>
<target state="translated">TestCleanup 方法“{0}”签名无效</target>
<note />
</trans-unit>
<trans-unit id="TestCleanupShouldBeValidTitle">
<source>TestCleanup method should have valid layout</source>
<target state="translated">TestCleanup 方法应该具有有效的布局</target>
<note />
</trans-unit>
<trans-unit id="TestContextShouldBeValidDescription">
<source>TestContext property should follow the following layout to be valid:
- it should be a property
- it should be 'public' (or 'internal' if '[assembly: DiscoverInternals]' attribute is set)
- it should not be 'static'
- it should not be readonly.</source>
<target state="translated">TestContext 属性应遵循以下布局才能生效:
- 它应该是属性
- 它应为“public”(如果设置了“[assembly: DiscoverInternals]”属性,则应为“internal”)
- 它不应为“static”
- 它不应为只读。</target>
<note />
</trans-unit>
<trans-unit id="TestContextShouldBeValidMessageFormat_NotField">
<source>Member 'TestContext' should be a property and not a field</source>
<target state="translated">成员“TestContext”应为属性而不是字段</target>
<note />
</trans-unit>
<trans-unit id="TestContextShouldBeValidMessageFormat_NotReadonly">
<source>Property 'TestContext' should be settable</source>
<target state="translated">属性“TestContext”应可设置</target>
<note />
</trans-unit>
<trans-unit id="TestContextShouldBeValidMessageFormat_NotStatic">
<source>Property 'TestContext' should not be 'static'</source>
<target state="translated">属性“TestContext”不应为“static”</target>
<note />
</trans-unit>
<trans-unit id="TestContextShouldBeValidMessageFormat_Public">
<source>Property 'TestContext' should be 'public'</source>
<target state="translated">属性“TestContext”应为“public”</target>
<note />
</trans-unit>
<trans-unit id="TestContextShouldBeValidMessageFormat_PublicOrInternal">
<source>Property 'TestContext' should be 'public' or 'internal'</source>
<target state="translated">属性“TestContext”应为“public”或“internal”</target>
<note />
</trans-unit>
<trans-unit id="TestContextShouldBeValidTitle">
<source>Test context property should have valid layout</source>
<target state="translated">测试上下文属性应具有有效的布局</target>
<note />
</trans-unit>
<trans-unit id="TestInitializeShouldBeValidDescription">
<source>Methods marked with [TestInitialize] should follow the following layout to be valid:
- be 'public'
- not be 'static'
- not be generic nor defined on a generic class
- not be 'abstract'
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">标记有 [TestInitialize] 的方法应遵循以下布局才会有效:
- 是 “public”
- 不是 “static”
- 不是泛型的,也不是在泛型类上定义的
- 不是 “abstract”
- 不采用任何参数
- 返回类型应为 "void"、"Task" 或 "ValueTask"
- 不是 “async void”
- 不是特殊方法(终结器、运算符...)。</target>
<note />
</trans-unit>
<trans-unit id="TestInitializeShouldBeValidMessageFormat">
<source>TestInitialize method '{0}' signature is invalid</source>
<target state="translated">TestInitialize 方法“{0}”签名无效</target>
<note />
</trans-unit>
<trans-unit id="TestInitializeShouldBeValidTitle">
<source>TestInitialize method should have valid layout</source>
<target state="translated">TestInitialize 方法应具有有效的布局</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidDescription">
<source>Test methods, methods marked with the '[TestMethod]' attribute, should respect the following layout to be considered valid by MSTest:
- it should be 'public' (or 'internal' if '[assembly: DiscoverInternals]' attribute is set)
- it should not be 'static'
- it should not be generic
- it should not be 'abstract'
- return type should be 'void', 'Task' or 'ValueTask'
- it should not be 'async void'
- it should not be a special method (finalizer, operator...).</source>
<target state="translated">测试方法 (标记有“[TestMethod]”属性的方法) 应遵循以下布局,以供 MSTest 将其视为有效:
- 它应该是“public” (如果设置了“[assembly: DiscoverInternals]”属性,则应该是“internal”)
- 它不应为“static”
- 它不应是泛型的
- 它不应为“abstract”
- 返回类型应为“void”、“Task”或“ValueTask”
- 它不应为“async void”
- 它不应是特殊方法 (运算符、运算符...)。</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidMessageFormat_NotAbstract">
<source>Test method '{0}' should not be 'abstract'</source>
<target state="translated">测试方法“{0}”不应为“abstract”</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidMessageFormat_NotAsyncVoid">
<source>Test method '{0}' should not be 'async void'</source>
<target state="translated">测试方法“{0}”不应为“async void”</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidMessageFormat_NotGeneric">
<source>Test method '{0}' should not be generic</source>
<target state="translated">测试方法“{0}”不应是泛型</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidMessageFormat_NotStatic">
<source>Test method '{0}' should not be 'static'</source>
<target state="translated">测试方法“{0}”不应为“static”</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidMessageFormat_Ordinary">
<source>Test method '{0}' should be an 'ordinary' method</source>
<target state="translated">测试方法“{0}”应为一种“普通”方法</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidMessageFormat_Public">
<source>Test method '{0}' should be 'public'</source>
<target state="translated">测试方法“{0}”应为“public”</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidMessageFormat_PublicOrInternal">
<source>Test method '{0}' should be 'public' or 'internal'</source>
<target state="translated">测试方法“{0}”应为“public”或“internal”</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidMessageFormat_ReturnType">
<source>Test method '{0}' should return 'void', 'Task' or 'ValueTask'</source>
<target state="translated">测试方法 '{0}' 应返回 'void'、'Task' 或 'ValueTask'</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldBeValidTitle">
<source>Test methods should have valid layout</source>
<target state="translated">测试方法应具有有效的布局</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldNotBeIgnoredAnalyzerDescription">
<source>Test methods should not be ignored (marked with '[Ignore]').</source>
<target state="translated">不应忽略测试方法(标记有 "[Ignore]")。</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldNotBeIgnoredAnalyzerFormat">
<source>Test method '{0}' should not be ignored</source>
<target state="translated">不应忽略测试方法“{0}”</target>
<note />
</trans-unit>
<trans-unit id="TestMethodShouldNotBeIgnoredAnalyzerTitle">
<source>Test method should not be ignored</source>
<target state="translated">不应忽略测试方法</target>
<note />
</trans-unit>
<trans-unit id="TypeContainingTestMethodShouldBeATestClassDescription">
<source>Type contaning '[TestMethod]' should be marked with '[TestClass]', otherwise the test method will be silently ignored.</source>
<target state="translated">应使用“[TestClass]”标记包含“[TestMethod]”的类型,否则将以静默方式忽略该测试方法。</target>
<note />
</trans-unit>
<trans-unit id="TypeContainingTestMethodShouldBeATestClassMessageFormat">
<source>Class '{0}' contains test methods and should be marked with '[TestClass]'</source>
<target state="translated">类“{0}”包含测试方法,应使用“[TestClass]”进行标记</target>
<note />
</trans-unit>
<trans-unit id="TypeContainingTestMethodShouldBeATestClassTitle">
<source>Type containing '[TestMethod]' should be marked with '[TestClass]'</source>
<target state="translated">应使用“[TestClass]”标记包含“[TestMethod]”的类型</target>
<note />
</trans-unit>
<trans-unit id="UseAsyncSuffixTestFixtureMethodSuppressorJustification">
<source>Asynchronous test fixture methods do not require the 'Async' suffix</source>
<target state="translated">异步测试固定例程方法不需要 "Async" 后缀</target>
<note />
</trans-unit>
<trans-unit id="UseAsyncSuffixTestMethodSuppressorJustification">
<source>Asynchronous test methods do not require the 'Async' suffix</source>
<target state="translated">异步测试方法不需要 "Async" 后缀</target>
<note />
</trans-unit>
<trans-unit id="UseAttributeOnTestMethodAnalyzerMessageFormat">
<source>[{0}] can only be set on methods marked with [TestMethod]</source>
<target state="translated">只能对标记了 [TestMethod] 的方法设置 [{0}]</target>
<note />
</trans-unit>
<trans-unit id="UseAttributeOnTestMethodAnalyzerTitle">
<source>[{0}] can only be set on methods marked with [TestMethod]</source>
<target state="translated">只能对标记了 [TestMethod] 的方法设置 [{0}]</target>
<note />
</trans-unit>
<trans-unit id="UseParallelizeAttributeAnalyzerDescription">
<source>By default, MSTest runs tests within the same assembly sequentially, which can lead to severe performance limitations. It is recommended to enable assembly attribute '[Parallelize]' to run tests in parallel, or if the assembly is known to not be parallelizable, to use explicitly the assembly level attribute '[DoNotParallelize]'.</source>
<target state="translated">默认情况下,MSTest 将按顺序在同一程序集中运行测试,这可能会导致严重的性能限制。建议启用程序集属性“[Parallelize]”以并行运行测试,或者如果已知程序集不可并行,则显式使用程序集级别属性“DoNotParallelize”。</target>
<note />
</trans-unit>
<trans-unit id="UseParallelizeAttributeAnalyzerMessageFormat">
<source>Explicitly enable or disable tests parallelization</source>
<target state="translated">显式启用或禁用测试并行化</target>
<note />
</trans-unit>
<trans-unit id="UseParallelizeAttributeAnalyzerTitle">
<source>Explicitly enable or disable tests parallelization</source>
<target state="translated">显式启用或禁用测试并行化</target>
<note />
</trans-unit>
</body>
</file>
</xliff>