Permalink
Browse files

TextConsole - RunNoInput

  • Loading branch information...
bobbymcr committed Nov 26, 2018
1 parent 1df769f commit e15df9c50b23fabed87bcac3c95de9d3e4bbcda2
Showing with 50 additions and 0 deletions.
  1. +26 −0 core/src/TextConsole.cs
  2. +24 −0 core/test/TextConsoleTest.cs
@@ -0,0 +1,26 @@
// <copyright file="TextConsole.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>

namespace Adventure
{
using System.IO;

public sealed class TextConsole
{
private readonly MessageBus bus;
private readonly TextReader reader;
private readonly TextWriter writer;

public TextConsole(MessageBus bus, TextReader reader, TextWriter writer)
{
this.bus = bus;
this.reader = reader;
this.writer = writer;
}

public void Run()
{
}
}
}
@@ -0,0 +1,24 @@
// <copyright file="TextConsoleTest.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>

namespace Adventure.Test
{
using System;
using System.IO;
using FluentAssertions;
using Xunit;

public class TextConsoleTest
{
[Fact]
public void RunNoInput()
{
TextConsole con = new TextConsole(new MessageBus(), TextReader.Null, TextWriter.Null);

Action act = () => con.Run();

act.Should().NotThrow();
}
}
}

0 comments on commit e15df9c

Please sign in to comment.