diff options
Diffstat (limited to 'mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics')
5 files changed, 0 insertions, 173 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/.gitattributes b/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/.gitattributes deleted file mode 100644 index 2d87a8bf956..00000000000 --- a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/.gitattributes +++ /dev/null @@ -1,4 +0,0 @@ -/TraceContext.TraceContextTraceListener.cs -crlf -/TraceContext.cs -crlf -/TraceEventDetails.cs -crlf -/TraceId.cs -crlf diff --git a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceContext.TraceContextTraceListener.cs b/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceContext.TraceContextTraceListener.cs deleted file mode 100644 index aa47b32ed10..00000000000 --- a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceContext.TraceContextTraceListener.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-#if !SILVERLIGHT
-
-using System;
-using System.Diagnostics;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-
-namespace System.ComponentModel.Composition.Diagnostics
-{
- partial class TraceContext : IDisposable
- {
- private class TraceContextTraceListener : TraceListener
- {
- private readonly Collection<TraceEventDetails> _traceEvents = new Collection<TraceEventDetails>();
-
- public IList<TraceEventDetails> TraceEvents
- {
- get { return _traceEvents; }
- }
-
- public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string format, params object[] args)
- {
- _traceEvents.Add(new TraceEventDetails(eventCache, source, eventType, (TraceId)id, format, args));
- }
-
- public override void Write(string message)
- {
- throw new NotImplementedException();
- }
-
- public override void WriteLine(string message)
- {
- throw new NotImplementedException();
- }
- }
- }
-}
-
-#endif
\ No newline at end of file diff --git a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceContext.cs b/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceContext.cs deleted file mode 100644 index 57486c71b29..00000000000 --- a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceContext.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-#if !SILVERLIGHT
-
-using System;
-using System.Linq;
-using System.Diagnostics;
-using System.Collections.Generic;
-
-namespace System.ComponentModel.Composition.Diagnostics
-{
- public partial class TraceContext : IDisposable
- {
- private readonly SourceLevels _previousLevel = TraceSourceTraceWriter.Source.Switch.Level;
- private readonly TraceContextTraceListener _listener = new TraceContextTraceListener();
-
- public TraceContext(SourceLevels level)
- {
- TraceSourceTraceWriter.Source.Switch.Level = level;
- TraceSourceTraceWriter.Source.Listeners.Add(_listener);
- }
-
- [CLSCompliant(false)]
- public TraceEventDetails LastTraceEvent
- {
- get { return _listener.TraceEvents.LastOrDefault(); }
- }
-
- [CLSCompliant(false)]
- public IList<TraceEventDetails> TraceEvents
- {
- get { return _listener.TraceEvents; }
- }
-
- public void Dispose()
- {
- TraceSourceTraceWriter.Source.Listeners.Remove(_listener);
- TraceSourceTraceWriter.Source.Switch.Level = _previousLevel;
- }
- }
-}
-
-#endif
\ No newline at end of file diff --git a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceEventDetails.cs b/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceEventDetails.cs deleted file mode 100644 index 8883b0f526a..00000000000 --- a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceEventDetails.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-#if !SILVERLIGHT
-
-using System;
-using System.Diagnostics;
-
-namespace System.ComponentModel.Composition.Diagnostics
-{
- [CLSCompliant(false)]
- public class TraceEventDetails
- {
- public TraceEventDetails(TraceEventCache eventCache, string source, TraceEventType eventType, TraceId id, string format, params object[] args)
- {
- EventCache = eventCache;
- Source = source;
- EventType = eventType;
- Id = id;
- Format = format;
- Args = args;
- }
-
- public TraceEventCache EventCache
- {
- get;
- private set;
- }
-
- public string Source
- {
- get;
- private set;
- }
-
- public TraceEventType EventType
- {
- get;
- private set;
- }
-
- public TraceId Id
- {
- get;
- private set;
- }
-
- public string Format
- {
- get;
- private set;
- }
-
- public object[] Args
- {
- get;
- private set;
- }
- }
-}
-
-#endif
\ No newline at end of file diff --git a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceId.cs b/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceId.cs deleted file mode 100644 index 7d07532394f..00000000000 --- a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/ComponentModel/Composition/Diagnostics/TraceId.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-
-namespace System.ComponentModel.Composition.Diagnostics
-{
- // We need a public version of CompositionTraceId, so that the QA tests can access and verify the trace.
- [CLSCompliant(false)]
- public enum TraceId : ushort
- {
- Rejection_DefinitionRejected = CompositionTraceId.Rejection_DefinitionRejected,
- Rejection_DefinitionResurrected = CompositionTraceId.Rejection_DefinitionResurrected,
-
- Discovery_AssemblyLoadFailed = CompositionTraceId.Discovery_AssemblyLoadFailed,
- Discovery_DefinitionMarkedWithPartNotDiscoverableAttribute = CompositionTraceId.Discovery_DefinitionMarkedWithPartNotDiscoverableAttribute,
- Discovery_DefinitionContainsGenericParameters = CompositionTraceId.Discovery_DefinitionContainsGenericParameters,
- Discovery_DefinitionContainsNoExports = CompositionTraceId.Discovery_DefinitionContainsNoExports,
- Discovery_MemberMarkedWithMultipleImportAndImportMany = CompositionTraceId.Discovery_MemberMarkedWithMultipleImportAndImportMany,
- }
-}
|