using System;
namespace NUnit.Framework
{
///
/// Abstract class used as a base for asserters that compare
/// expected and an actual values in some way or another.
///
public abstract class ComparisonAsserter : AbstractAsserter
{
///
/// The expected value, used as the basis for comparison.
///
protected object expected;
///
/// The actual value to be compared.
///
protected object actual;
///
/// Constructs a ComparisonAsserter for two objects
///
/// The expected value
/// The actual value
/// The message to issue on failure
/// Arguments to apply in formatting the message
public ComparisonAsserter( object expected, object actual, string message, params object[] args )
: base( message, args )
{
this.expected = expected;
this.actual = actual;
}
}
}