Sha256: c5683fa392aefbd71c95032b3efe9d4e05ed5b5db267a6592a06c2684193c74d

Contents?: true

Size: 609 Bytes

Versions: 114

Compression:

Stored size: 609 Bytes

Contents

using Generators.Input;

namespace Generators.Exercises
{
    public class LargestSeriesProduct : GeneratorExercise
    {
        protected override void UpdateCanonicalData(CanonicalData canonicalData)
        {
            foreach (var canonicalDataCase in canonicalData.Cases)
            {
                canonicalDataCase.Property = "GetLargestProduct";
                
                var caseInputLessThanZero = (long)canonicalDataCase.Expected == -1;
                canonicalDataCase.ExceptionThrown = caseInputLessThanZero ? typeof(System.ArgumentException) : null;
            }
        }
    }
}

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.138 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.137 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.136 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.135 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.134 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.133 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.132 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.131 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.130 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.129 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.128 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.127 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.126 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.125 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.124 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.123 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.122 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.121 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs
trackler-2.2.1.120 tracks/csharp/generators/Exercises/LargestSeriesProduct.cs