ficdown/Ficdown.Parser.Tests/IntegrationTests.cs

22 lines
534 B
C#
Raw Normal View History

2014-06-30 16:57:14 -05:00
namespace Ficdown.Parser.Tests
2014-06-30 11:59:56 -05:00
{
2014-06-30 16:57:14 -05:00
using System;
using System.Text;
using ServiceStack.Text;
using TestStories;
using Xunit;
public class IntegrationTests
2014-06-30 11:59:56 -05:00
{
2014-06-30 16:57:14 -05:00
[Fact]
public void CanParseValidStoryFile()
{
var parser = new FicdownParser();
var storyText = Encoding.UTF8.GetString(Resources.the_robot_king);
var story = parser.ParseStory(storyText);
Assert.NotNull(story);
Console.WriteLine(story.Dump());
}
2014-06-30 11:59:56 -05:00
}
}