Skip to content

Commit c5c5a9d

Browse files
committed
undone Attribute Parameters
1 parent 5a908ab commit c5c5a9d

21 files changed

Lines changed: 27 additions & 27 deletions

tests/QuikGraph.Tests/Algorithms/Condensation/EdgeMergeCondensationGraphAlgorithmTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public void EdgeCondensationSomeVertices()
198198

199199
[Test]
200200
[Category(TestCategories.LongRunning)]
201-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), [-1])]
201+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), new object[] { -1 })]
202202
public void EdgeCondensation(BidirectionalGraph<string, Edge<string>> graph)
203203
{
204204
var rand = new Random(123456);

tests/QuikGraph.Tests/Algorithms/ConnectedComponents/ConnectedComponentsAlgorithmTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using JetBrains.Annotations;
@@ -211,7 +211,7 @@ public void MultipleComponents()
211211
}
212212

213213
[Category(TestCategories.LongRunning)]
214-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetUndirectedGraphs_SlowTests), [10])]
214+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetUndirectedGraphs_SlowTests), new object[] { 10 })]
215215
public void ConnectedComponents(UndirectedGraph<string, Edge<string>> graph)
216216
{
217217
while (graph.EdgeCount > 0)

tests/QuikGraph.Tests/Algorithms/MaximumFlow/EdmondsKarpMaximumFlowAlgorithmTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public void GetVertexColor()
370370
Assert.AreEqual(GraphColor.White, algorithm.GetVertexColor(3));
371371
}
372372

373-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), [100])]
373+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), new object[] { 100 })]
374374
[Category(TestCategories.LongRunning)]
375375
public void EdmondsKarpMaxFlow(AdjacencyGraph<string, Edge<string>> graph)
376376
{

tests/QuikGraph.Tests/Algorithms/RandomWalks/CyclePoppingRandomTreeAlgorithmTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public void GraphWithCycles()
350350
}
351351
}
352352

353-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), [10])]
353+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), new object[] { 10 })]
354354
[Category(TestCategories.LongRunning)]
355355
public void CyclePoppingRandomTree(AdjacencyGraph<string, Edge<string>> graph)
356356
{

tests/QuikGraph.Tests/Algorithms/RankedShortestPath/HoffmanPavleyRankedShortestPathAlgorithmTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public void ComputeWithRootAndTarget_Throws()
296296

297297
#endregion
298298

299-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), [-1])]
299+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), new object[] { -1 })]
300300
[Category(TestCategories.LongRunning)]
301301
public void HoffmanPavleyRankedShortestPath(BidirectionalGraph<string, Edge<string>> graph)
302302
{

tests/QuikGraph.Tests/Algorithms/Search/BestFirstFrontierSearchAlgorithmTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace QuikGraph.Tests.Algorithms.Search
1717
[TestFixture]
1818
internal sealed class BestFirstFrontierSearchAlgorithmTests : SearchAlgorithmTestsBase
1919
{
20-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), [-1])]
20+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), new object[] { -1 })]
2121
[Category(TestCategories.LongRunning)]
2222
public static void RunAndCheckSearch<TVertex, TEdge>(
2323
[NotNull] IBidirectionalGraph<TVertex, TEdge> graph)
@@ -280,7 +280,7 @@ public void SimpleGraph()
280280
RunAndCheckSearch(graph);
281281
}
282282

283-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), [-1])]
283+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), new object[] { -1 })]
284284
[Category(TestCategories.LongRunning)]
285285
public void BestFirstFrontierComparedToDijkstraSearch(BidirectionalGraph<string, Edge<string>> graph)
286286
{

tests/QuikGraph.Tests/Algorithms/Search/BidirectionalDepthFirstSearchAlgorithmTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public void GetVertexColor()
274274
Assert.AreEqual(GraphColor.Black, algorithm.GetVertexColor(2));
275275
}
276276

277-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), [-1])]
277+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetBidirectionalGraphs_SlowTests), new object[] { -1 })]
278278
[Category(TestCategories.LongRunning)]
279279
public void DepthFirstSearch(BidirectionalGraph<string, Edge<string>> graph)
280280
{

tests/QuikGraph.Tests/Algorithms/Search/BreadthFirstSearchAlgirthmTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public void GetVertexColor()
364364
Assert.AreEqual(GraphColor.Black, algorithm.GetVertexColor(2));
365365
}
366366

367-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), [-1])]
367+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), new object[] { -1 })]
368368
[Category(TestCategories.LongRunning)]
369369
public void BreadthFirstSearch(AdjacencyGraph<string, Edge<string>> graph)
370370
{

tests/QuikGraph.Tests/Algorithms/Search/DepthFirstSearchAlgorithmTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using JetBrains.Annotations;
@@ -283,7 +283,7 @@ public void GetVertexColor()
283283
Assert.AreEqual(GraphColor.Black, algorithm.GetVertexColor(2));
284284
}
285285

286-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), [-1])]
286+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), new object[] { -1 })]
287287
public void DepthFirstSearch(AdjacencyGraph<string, Edge<string>> graph)
288288
{
289289
RunDFSAndCheck(graph);

tests/QuikGraph.Tests/Algorithms/Search/EdgeDepthFirstSearchAlgorithmTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using JetBrains.Annotations;
44
using NUnit.Framework;
@@ -236,7 +236,7 @@ public void ComputeWithRoot_Throws()
236236

237237
#endregion
238238

239-
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), [-1])]
239+
[TestCaseSource(typeof(TestGraphFactory), nameof(TestGraphFactory.GetAdjacencyGraphs_SlowTests), new object[] { -1 })]
240240
[Category(TestCategories.LongRunning)]
241241
public void EdgeDepthFirstSearch(AdjacencyGraph<string, Edge<string>> graph)
242242
{

0 commit comments

Comments
 (0)