Skip to content

Commit 9b9c5b6

Browse files
authored
Remove redundant attributes (#438)
1 parent 6922799 commit 9b9c5b6

36 files changed

+2
-72
lines changed

Algorithms.Tests/Compressors/BurrowsWheelerTransformTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ namespace Algorithms.Tests.Compressors;
66

77
public class BurrowsWheelerTransformTests
88
{
9-
[Test]
109
[TestCase("banana", "nnbaaa", 3)]
1110
[TestCase("SIX.MIXED.PIXIES.SIFT.SIXTY.PIXIE.DUST.BOXES", "TEXYDST.E.IXIXIXXSSMPPS.B..E.S.EUSFXDIIOIIIT", 29)]
1211
[TestCase("", "", 0)]
@@ -20,7 +19,6 @@ public void Encode(string input, string expectedString, int expectedIndex)
2019
Assert.AreEqual(expectedIndex, index);
2120
}
2221

23-
[Test]
2422
[TestCase("nnbaaa", 3, "banana")]
2523
[TestCase("TEXYDST.E.IXIXIXXSSMPPS.B..E.S.EUSFXDIIOIIIT", 29, "SIX.MIXED.PIXIES.SIFT.SIXTY.PIXIE.DUST.BOXES")]
2624
[TestCase("", 0, "")]

Algorithms.Tests/Compressors/HuffmanCompressorTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace Algorithms.Tests.Compressors;
88

99
public static class HuffmanCompressorTests
1010
{
11-
[Test]
1211
[TestCase("This is a string", "101010110111011101110111100011111010010010010011000")]
1312
[TestCase("Hello", "1101110010")]
1413
[TestCase("dddddddddd", "1111111111")]

Algorithms.Tests/Compressors/ShannonFanoCompressorTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace Algorithms.Tests.Compressors;
77

88
public static class ShannonFanoCompressorTests
99
{
10-
[Test]
1110
[TestCase("dddddddddd", "1111111111")]
1211
[TestCase("a", "1")]
1312
[TestCase("", "")]

Algorithms.Tests/Encoders/FeistelCipherTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public static void DecodedStringIsTheSame([Random(100)] uint key)
2626
Assert.AreEqual(message, decoded);
2727
}
2828

29-
[Test]
3029
[TestCase("00001111", (uint)0x12345678)]
3130
[TestCase("00001111222233334444555566667", (uint)0x12345678)]
3231
[TestCase("000011112222333344445555666677", (uint)0x12345678)]

Algorithms.Tests/Graph/BreadthFirstTreeTraversalTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public static void EmptyArrayForNullRoot()
3939
Assert.IsEmpty(levelOrder);
4040
}
4141

42-
[Test]
4342
[TestCase(new [] {7, 9, 5})]
4443
[TestCase(new [] { 7, 13, 11, 15, 14, 4, 5, 16, 2 })]
4544
public static void IncorrectLevelOrderTraversal(int[] insertion)

Algorithms.Tests/LinearAlgebra/Distances/EuclideanTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ namespace Algorithms.Tests.LinearAlgebra.Distances;
88
public static class EuclideanTests
99
{
1010
/// <summary>
11-
/// Test the result given by Euclidean distance function.
11+
/// Test the result given by Euclidean distance function.
1212
/// </summary>
1313
/// <param name="point1">Origin point.</param>
1414
/// <param name="point2">Target point.</param>
1515
/// <param name="expectedResult">Expected result.</param>
16-
[Test]
1716
[TestCase(new[] { 1.5 }, new[] { -1.0 }, 2.5)]
1817
[TestCase(new[] { 7.0, 4.0, 3.0 }, new[] { 17.0, 6.0, 2.0 }, 10.247)]
1918
public static void DistanceTest(double[] point1, double[] point2, double expectedResult)
@@ -26,7 +25,6 @@ public static void DistanceTest(double[] point1, double[] point2, double expecte
2625
/// </summary>
2726
/// <param name="point1">First point of N dimensions.</param>
2827
/// <param name="point2">Second point of M dimensions, M != N.</param>
29-
[Test]
3028
[TestCase(new[] { 7.0, 4.5 }, new[] { -3.0 })]
3129
[TestCase(new[] { 12.0 }, new[] { 1.5, 7.0, 3.2 })]
3230
public static void DistanceThrowsArgumentExceptionOnDifferentPointDimensions(double[] point1, double[] point2)

Algorithms.Tests/LinearAlgebra/Distances/ManhattanTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ namespace Algorithms.Tests.LinearAlgebra.Distances;
88
public class ManhattanTests
99
{
1010
/// <summary>
11-
/// Test the result given by Manhattan distance function.
11+
/// Test the result given by Manhattan distance function.
1212
/// </summary>
1313
/// <param name="point1">Origin point.</param>
1414
/// <param name="point2">Target point.</param>
1515
/// <param name="expectedDistance">Expected result.</param>
16-
[Test]
1716
[TestCase(new[] { 1.5 }, new[] { -1.0 }, 2.5)]
1817
[TestCase(new[] { 2.0, 3.0 }, new[] { -1.0, 5.0 }, 5)]
1918
[TestCase(new[] { 1.0, 2.0, 3.0 }, new[] { 1.0, 2.0, 3.0 }, 0)]
@@ -28,7 +27,6 @@ public void DistanceTest(double[] point1, double[] point2, double expectedDistan
2827
/// </summary>
2928
/// <param name="point1">First point of N dimensions.</param>
3029
/// <param name="point2">Second point of M dimensions, M != N.</param>
31-
[Test]
3230
[TestCase(new[] { 2.0, 3.0 }, new[] { -1.0 })]
3331
[TestCase(new[] { 1.0 }, new[] { 1.0, 2.0, 3.0 })]
3432
public void DistanceThrowsArgumentExceptionOnDifferentPointDimensions(double[] point1, double[] point2)

Algorithms.Tests/ModularArithmetic/ExtendedEuclideanAlgorithmTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ namespace Algorithms.Tests.ModularArithmetic;
66

77
public static class ExtendedEuclideanAlgorithmTest
88
{
9-
[Test]
109
[TestCase(240, 46, 2, -9, 47)]
1110
[TestCase(46, 240, 2, 47, -9)]
1211
[TestCase(2, 3, 1, -1, 1)]
@@ -29,7 +28,6 @@ public static void TestCompute(long a, long b, long expectedGCD, long expectedBe
2928
Assert.AreEqual(expectedBezoutOfB, eeaResult.bezoutB);
3029
}
3130

32-
[Test]
3331
[TestCase(240, 46, 2, -9, 47)]
3432
[TestCase(46, 240, 2, 47, -9)]
3533
[TestCase(2, 3, 1, -1, 1)]

Algorithms.Tests/ModularArithmetic/ModularMultiplicativeInverseTest.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace Algorithms.Tests.ModularArithmetic;
77

88
public static class ModularMultiplicativeInverseTest
99
{
10-
[Test]
1110
[TestCase(2, 3, 2)]
1211
[TestCase(1, 1, 0)]
1312
[TestCase(13, 17, 4)]
@@ -20,7 +19,6 @@ public static void TestCompute(long a, long n, long expected)
2019
Assert.AreEqual(expected, inverse);
2120
}
2221

23-
[Test]
2422
[TestCase(46, 240)]
2523
[TestCase(0, 17)]
2624
[TestCase(17, 0)]
@@ -36,7 +34,6 @@ public static void TestCompute_Irrevertible(long a, long n)
3634
_ = Assert.Throws<ArithmeticException>(Act);
3735
}
3836

39-
[Test]
4037
[TestCase(2, 3, 2)]
4138
[TestCase(1, 1, 0)]
4239
[TestCase(13, 17, 4)]
@@ -49,7 +46,6 @@ public static void TestCompute_BigInteger(long a, long n, long expected)
4946
Assert.AreEqual(new BigInteger(expected), inverse);
5047
}
5148

52-
[Test]
5349
[TestCase(46, 240)]
5450
[TestCase(0, 17)]
5551
[TestCase(17, 0)]

Algorithms.Tests/Numeric/AliquotSumCalculatorTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace Algorithms.Tests.Numeric;
77

88
public static class AliquotSumCalculatorTests
99
{
10-
[Test]
1110
[TestCase(1, 0)]
1211
[TestCase(3, 1)]
1312
[TestCase(25, 6)]
@@ -23,7 +22,6 @@ public static void CalculateSum_SumIsCorrect(int number, int expectedSum)
2322
result.Should().Be(expectedSum);
2423
}
2524

26-
[Test]
2725
[TestCase(-2)]
2826
public static void CalculateSum_NegativeInput_ExceptionIsThrown(int number)
2927
{

0 commit comments

Comments
 (0)