Summary

Class:FakeXrmEasy.XrmFakedTracingService
Assembly:FakeXrmEasy
File(s):F:\Git\fake-xrm-easy\FakeXrmEasy.Shared\XrmFakedTracingService.cs
Covered lines:18
Uncovered lines:0
Coverable lines:18
Total lines:35
Line coverage:100%
Branch coverage:100%

Metrics

MethodCyclomatic ComplexitySequence CoverageBranch Coverage
.ctor()1100100
Trace(...)2100100
DumpTrace()1100100

File(s)

F:\Git\fake-xrm-easy\FakeXrmEasy.Shared\XrmFakedTracingService.cs

#LineLine coverage
 1using Microsoft.Xrm.Sdk;
 2using System;
 3using System.Text;
 4
 5namespace FakeXrmEasy
 6{
 7    public class XrmFakedTracingService : ITracingService
 8    {
 6859        protected StringBuilder _trace { get; set; }
 10
 19911        public XrmFakedTracingService()
 19912        {
 19913            _trace = new StringBuilder();
 19914        }
 15
 16        public void Trace(string format, params object[] args)
 81017        {
 81018             if (args.Length == 0)
 40219            {
 40220                Trace("{0}", format);
 40221            }
 22            else
 40823            {
 40824                Console.WriteLine(format, args);
 25
 40826                _trace.AppendLine(string.Format(format, args));
 121827            };
 81028        }
 29
 30        public string DumpTrace()
 7831        {
 7832            return _trace.ToString();
 7833        }
 34    }
 35}