Sha256: 404410583a3fe945a242dfa45da1b74880a5b09118ed629b154db0e0dcef3fc3

Contents?: true

Size: 823 Bytes

Versions: 7

Compression:

Stored size: 823 Bytes

Contents

using System.Collections.Generic;
using Generators.Input;

namespace Generators.Exercises
{
    public class SpaceAge : Exercise
    {
        protected override void UpdateCanonicalData(CanonicalData canonicalData)
        {
            foreach (var canonicalDataCase in canonicalData.Cases)
            {
                canonicalDataCase.TestedMethodType = TestedMethodType.Instance;

                canonicalDataCase.ConstructorInput = new Dictionary<string, object>
                {
                    ["seconds"] = canonicalDataCase.Properties["seconds"]
                };
                canonicalDataCase.Input.Remove("seconds");

                canonicalDataCase.Property = $"On_{canonicalDataCase.Input["planet"]}";
                canonicalDataCase.Input.Remove("planet");
            }
        }
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
trackler-2.2.1.22 tracks/csharp/generators/Exercises/SpaceAge.cs
trackler-2.2.1.21 tracks/csharp/generators/Exercises/SpaceAge.cs
trackler-2.2.1.20 tracks/csharp/generators/Exercises/SpaceAge.cs
trackler-2.2.1.19 tracks/csharp/generators/Exercises/SpaceAge.cs
trackler-2.2.1.18 tracks/csharp/generators/Exercises/SpaceAge.cs
trackler-2.2.1.17 tracks/csharp/generators/Exercises/SpaceAge.cs
trackler-2.2.1.16 tracks/csharp/generators/Exercises/SpaceAge.cs