Files
Orchard/src/Orchard.Tests/FakeTests.cs
T
rpaquay 2d3cd1b304 Populating initial tree
--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4038902
2009-11-07 22:49:58 +00:00

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));
}
}
}