1
- // Copyright (c) Microsoft Corporation. All rights reserved.
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
4
4
using Microsoft . Testing . Platform . Acceptance . IntegrationTests ;
@@ -28,8 +28,12 @@ public async Task CanUseLongTuplesAndValueTuplesForAllFrameworks(string tfm)
28
28
11, 12, 13, 14, 15, 16, 17, 18, 19, 20
29
29
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
30
30
11, 12, 13, 14, 15, 16, 17, 18, 19, 20
31
+ Hello, , World
32
+ Hello2, , World2
33
+ Hello, , World
34
+ Hello2, , World2
31
35
""" ) ;
32
- testHostResult . AssertOutputContainsSummary ( failed : 0 , passed : 8 , skipped : 0 ) ;
36
+ testHostResult . AssertOutputContainsSummary ( failed : 0 , passed : 12 , skipped : 0 ) ;
33
37
}
34
38
35
39
public sealed class TestAssetFixture ( ) : TestAssetFixtureBase ( AcceptanceFixture . NuGetGlobalPackagesFolder )
@@ -97,11 +101,19 @@ public void TestMethod1(int p1, int p2, int p3, int p4, int p5, int p6, int p7,
97
101
[DynamicData(nameof(DataTuple10))]
98
102
[DynamicData(nameof(DataValueTuple10))]
99
103
[TestMethod]
100
- public void TestMethod1 (int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8, int p9, int p10)
104
+ public void TestMethod2 (int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8, int p9, int p10)
101
105
{
102
106
s_builder.AppendLine($"{p1}, {p2}, {p3}, {p4}, {p5}, {p6}, {p7}, {p8}, {p9}, {p10}");
103
107
}
104
108
109
+ [DynamicData(nameof(DataTupleString3))]
110
+ [DynamicData(nameof(DataValueTupleString3))]
111
+ [TestMethod]
112
+ public void TestMethod3(string p1, string p2, string p3)
113
+ {
114
+ s_builder.AppendLine($"{p1}, {p2}, {p3}");
115
+ }
116
+
105
117
public static IEnumerable<Tuple<int, int, int, int, int, int, int, Tuple<int>>> DataTuple8 =>
106
118
[
107
119
(1, 2, 3, 4, 5, 6, 7, 8).ToTuple(),
@@ -125,6 +137,18 @@ public void TestMethod1(int p1, int p2, int p3, int p4, int p5, int p6, int p7,
125
137
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
126
138
(11, 12, 13, 14, 15, 16, 17, 18, 19, 20),
127
139
];
140
+
141
+ public static IEnumerable<Tuple<string, string, string>> DataTupleString3 =>
142
+ [
143
+ ("Hello", (string)null, "World").ToTuple(),
144
+ ("Hello2", (string)null, "World2").ToTuple(),
145
+ ];
146
+
147
+ public static IEnumerable<ValueTuple<string, string, string>> DataValueTupleString3 =>
148
+ [
149
+ ("Hello", null, "World"),
150
+ ("Hello2", null, "World2"),
151
+ ];
128
152
}
129
153
130
154
0 commit comments