1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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
20 /// Represents a mock implementation of <see cref="ITrace"/> for unit test purposes.
22 public class MockTrace
: ITrace
25 /// Logs the specified message on the ASP.Net trace
27 /// <param name="message">The message.</param>
28 public virtual void Warn(string message
)
33 /// Logs the specified message on the ASP.Net trace
35 /// <param name="category">The category.</param>
36 /// <param name="message">The message.</param>
37 public virtual void Warn(string category
, string message
)
42 /// Logs the specified message on the ASP.Net trace
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
)
52 /// Logs the specified message on the ASP.Net trace
54 /// <param name="message">The message.</param>
55 public virtual void Write(string message
)
60 /// Logs the specified message on the ASP.Net trace
62 /// <param name="category">The category.</param>
63 /// <param name="message">The message.</param>
64 public virtual void Write(string category
, string message
)
69 /// Logs the specified message on the ASP.Net trace
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
)