mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4038902
29 lines
633 B
C#
29 lines
633 B
C#
using System;
|
|
using NUnit.Framework;
|
|
|
|
namespace Orchard.Tests {
|
|
[TestFixture]
|
|
public class FakeTests {
|
|
#region Setup/Teardown
|
|
|
|
[SetUp]
|
|
public void Init() {
|
|
_x = 5;
|
|
}
|
|
|
|
#endregion
|
|
|
|
private int _x;
|
|
|
|
[Test]
|
|
[ExpectedException(typeof (ApplicationException), ExpectedMessage = "Boom")]
|
|
public void ExceptionsCanBeVerified() {
|
|
throw new ApplicationException("Boom");
|
|
}
|
|
|
|
[Test]
|
|
public void TestShouldRunFromResharper() {
|
|
Assert.That(_x, Is.EqualTo(5));
|
|
}
|
|
}
|
|
} |