Exemplo n.º 1
0
        public void When_a_trace_is_dumped_it_should_return_right_traces()
        {
            var tracingService = new XrmFakedTracingService();

            var trace1 = "This is one trace";
            var trace2 = "This is a second trace";

            tracingService.Trace(trace1);
            tracingService.Trace(trace2);

            Assert.Equal(tracingService.DumpTrace(), trace1 + "\r\n" + trace2 + "\r\n");
        }
Exemplo n.º 2
0
        public void When_TargetDoesntExist_Expect_TraceAndReturn()
        {
            string trace = TracingService.DumpTrace();

            Assert.IsTrue(trace.Contains(string.Format($"Target is missing. Exiting")));
        }