public void TestProfilingSessionExtensions_AddTag_InvalidTag() { // mock profiler var profilerId = Guid.NewGuid(); var mockProfiler = new Mock <IProfiler>(); var timingSession = new TimingSession(mockProfiler.Object, "test", null); mockProfiler.Setup(p => p.Id).Returns(profilerId); mockProfiler.Setup(p => p.GetTimingSession()).Returns(timingSession); var target = new ProfilingSession(mockProfiler.Object); target.AddTag(""); Assert.IsNull(timingSession.Tags); }