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