// created on 30/01/2004 at 19:03
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
namespace GUnit.Core.Exceptions
{
using System;
using System.IO;
using System.Runtime.Serialization;
using GUnit.Core.Invokers;
using System.Collections;
/// <summary>
/// TODO - Add class summary
/// </summary>
/// <remarks>
/// created by - dehalleux
/// created on - 30/01/2004 16:40:20
/// </remarks>
public class ExceptionNotThrownException : ExecuteException
{
private Type expected;
public ExceptionNotThrownException(IRunInvoker invoker,
Object o,
IList parameters,
Type expected
)
:base(invoker,o,parameters)
{
this.expected = expected;
}
public ExceptionNotThrownException(
IRunInvoker invoker,
Object o,
IList parameters,
Type expected,
string message
)
:base(invoker,o,parameters,message)
{
this.expected = expected;
}
protected ExceptionNotThrownException(
IRunInvoker invoker,
Object o,
IList parameters,
Type expected,
SerializationInfo info,
StreamingContext context)
:base(invoker,o,parameters,info,context)
{
this.expected = expected;
}
public ExceptionNotThrownException(
IRunInvoker invoker,
Object o,
IList parameters,
Type expected,
string message,
Exception innerException
)
:base(invoker,o,parameters,message,innerException)
{
this.expected = expected;
}
public override string ToString()
{
StringWriter sw = new StringWriter();
sw.WriteLine("Expected exception of type {0}, did not get it.",
this.expected.FullName
);
sw.WriteLine(base.ToString());
return sw.ToString();
}
}
}