summaryrefslogtreecommitdiff
path: root/src/Notepad/Presentation/Presenters/Menu/Help/AboutApplicationPresenterSpecs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Notepad/Presentation/Presenters/Menu/Help/AboutApplicationPresenterSpecs.cs')
-rw-r--r--src/Notepad/Presentation/Presenters/Menu/Help/AboutApplicationPresenterSpecs.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Notepad/Presentation/Presenters/Menu/Help/AboutApplicationPresenterSpecs.cs b/src/Notepad/Presentation/Presenters/Menu/Help/AboutApplicationPresenterSpecs.cs
new file mode 100644
index 0000000..26d7148
--- /dev/null
+++ b/src/Notepad/Presentation/Presenters/Menu/Help/AboutApplicationPresenterSpecs.cs
@@ -0,0 +1,34 @@
+using MbUnit.Framework;
+using Notepad.Presentation.Views.Menu.Help;
+using Rhino.Mocks;
+
+namespace Notepad.Presentation.Presenters.Menu.Help {
+ public class AboutApplicationPresenterSpecs {}
+
+ [TestFixture]
+ public class when_initializing_the_application_information_presenter_ {
+ private MockRepository mockery;
+ private IAboutApplicationView view;
+
+ [SetUp]
+ public void SetUp() {
+ mockery = new MockRepository();
+ view = mockery.DynamicMock<IAboutApplicationView>();
+ }
+
+ [Test]
+ public void should_display_the_view() {
+ using (mockery.Record()) {
+ view.Display();
+ }
+
+ using (mockery.Playback()) {
+ CreateSUT().Initialize();
+ }
+ }
+
+ private IAboutApplicationPresenter CreateSUT() {
+ return new AboutApplicationPresenter(view);
+ }
+ }
+} \ No newline at end of file