Exemplo n.º 1
0
        public static void LogTestResults(List <TestOfResult> results, string path)
        {
            if (results == null)
            {
                return;
            }
            if (results.Count == 0)
            {
                return;
            }

            //get something we can write to
            var             list  = NaturalStringableList.New().Fileable().Filing(path);
            IStringableList iList = list.As <IStringableList>(false);

            foreach (var each in results)
            {
                var s = each.Stringable();
                //cos we've changed our decorated type from stringablelist to stringable we have to grab the list decoration
                var eVal = s.GetValue();
                iList.Add(eVal);
            }
            list.Write();
        }