Beispiel #1
0
        public Result First(List <string> input)
        {
            var converter = new SpaceImageFormatConverter(25, 6, input.First());
            var layer     = converter.GetLayer();
            var value     = layer.NrOf(1) * layer.NrOf(2);

            return(new Result(value));
        }
Beispiel #2
0
        public TestResult Test(List <string> input)
        {
            var  converter = new SpaceImageFormatConverter(3, 2, input.First());
            var  layer     = converter.GetLayer();
            var  value     = layer.NrOf(1) * layer.NrOf(2);
            var  expected  = 1;
            bool succeded  = value == expected;

            return(new TestResult(succeded, expected, value));
        }