Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (30 sloc) 0.952 kB
namespace Simple.Data.UnitTest
{
using System;
using NUnit.Framework;
[TestFixture]
public class SimpleDataExceptionTest
{
[Test]
public void EmptyConstructor()
{
var actual = new SimpleDataException();
Assert.IsNotNull(actual);
Assert.AreEqual(actual.Message, "Exception of type 'Simple.Data.SimpleDataException' was thrown.");
}
[Test]
public void StringConstructor()
{
var actual = new SimpleDataException("Foo");
Assert.AreEqual("Foo", actual.Message);
}
[Test]
public void StringAndExceptionConstructor()
{
var inner = new Exception();
var actual = new SimpleDataException("Foo", inner);
Assert.AreEqual("Foo", actual.Message);
Assert.AreSame(inner, actual.InnerException);
}
}
}
Jump to Line
Something went wrong with that request. Please try again.