Fixing an issue with output parameters that are of type IntPtr
[castle.git] / MonoRail / Castle.MonoRail.Framework / Test / MockTrace.cs
blob17ddabbfc4e4b496b3025042db993d6aa8aab236
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.MonoRail.Framework.Test
17 using System;
19 /// <summary>
20 /// Represents a mock implementation of <see cref="ITrace"/> for unit test purposes.
21 /// </summary>
22 public class MockTrace : ITrace
24 /// <summary>
25 /// Logs the specified message on the ASP.Net trace
26 /// </summary>
27 /// <param name="message">The message.</param>
28 public virtual void Warn(string message)
32 /// <summary>
33 /// Logs the specified message on the ASP.Net trace
34 /// </summary>
35 /// <param name="category">The category.</param>
36 /// <param name="message">The message.</param>
37 public virtual void Warn(string category, string message)
41 /// <summary>
42 /// Logs the specified message on the ASP.Net trace
43 /// </summary>
44 /// <param name="category">The category.</param>
45 /// <param name="message">The message.</param>
46 /// <param name="errorInfo">The error info.</param>
47 public virtual void Warn(string category, string message, Exception errorInfo)
51 /// <summary>
52 /// Logs the specified message on the ASP.Net trace
53 /// </summary>
54 /// <param name="message">The message.</param>
55 public virtual void Write(string message)
59 /// <summary>
60 /// Logs the specified message on the ASP.Net trace
61 /// </summary>
62 /// <param name="category">The category.</param>
63 /// <param name="message">The message.</param>
64 public virtual void Write(string category, string message)
68 /// <summary>
69 /// Logs the specified message on the ASP.Net trace
70 /// </summary>
71 /// <param name="category">The category.</param>
72 /// <param name="message">The message.</param>
73 /// <param name="errorInfo">The error info.</param>
74 public virtual void Write(string category, string message, Exception errorInfo)