using System.Collections.Generic;
public static void Main(string[] args)
var tests = new List<TestCase>
new TestCase("1T5T5T11", -5)
foreach (var testCase in tests)
var acutal = Sum(testCase.Given);
if (acutal != testCase.Expected)
throw new Exception($"Incorrect. Expected:{testCase.Expected}, but got {acutal}");
Console.WriteLine("success");
public double Expected { get; }
public string Given { get; }
public TestCase(string given, double expected)
static double Sum(string input)
throw new NotImplementedException("your code here");