-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more fail paths for data serialization. (#1084)
IDataSource tests don't support duplicate test names, or unserializable objects. Added bail out paths and warnings for those scnerios.
- Loading branch information
Showing
10 changed files
with
122 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 28 additions & 1 deletion
29
src/Adapter/MSTest.CoreAdapter/Resources/Resource.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
test/E2ETests/TestAssets/FxExtensibilityTestProject/CustomTestExTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
test/E2ETests/TestAssets/FxExtensibilityTestProject/DynamicDataDiscoveryBailOutTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace FxExtensibilityTestProject | ||
{ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
using System.Collections.Generic; | ||
|
||
[TestClass] | ||
public class DynamicDataDiscoveryBailOutTests | ||
{ | ||
public static IEnumerable<object[]> DuplicateDisplayName() | ||
{ | ||
yield return new object[] { null }; | ||
yield return new object[] { new List<int>() }; | ||
yield return new object[] { new List<int>() { 0, 1, 2 } }; | ||
} | ||
|
||
[TestMethod] | ||
[DynamicData(nameof(DuplicateDisplayName), DynamicDataSourceType.Method)] | ||
public void DynamicDataDiscoveryBailOutTestMethod1(IEnumerable<int> items) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
test/E2ETests/TestAssets/FxExtensibilityTestProject/TestDataSourceExTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters