34 lines
993 B
C#
34 lines
993 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using NUnit.Framework;
|
|
using Untappd.Net.Exception;
|
|
|
|
namespace Untappd.Net.UnitTests.Exception
|
|
{
|
|
[TestFixture]
|
|
public class TestBaseUntappdException
|
|
{
|
|
[ExpectedException(typeof (BaseUntappdException))]
|
|
[Test]
|
|
public void TestStandardException()
|
|
{
|
|
throw new BaseUntappdException();
|
|
}
|
|
[ExpectedException(typeof(BaseUntappdException), ExpectedMessage = "messageHere")]
|
|
[Test]
|
|
public void TestStandardExceptionWithMessage()
|
|
{
|
|
throw new BaseUntappdException("messageHere");
|
|
}
|
|
[ExpectedException(typeof(BaseUntappdException), ExpectedMessage = "messageHere")]
|
|
[Test]
|
|
public void TestStandardExceptionWithInner()
|
|
{
|
|
throw new BaseUntappdException("messageHere", new System.Exception("innerException!"));
|
|
}
|
|
}
|
|
}
|