Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (20 sloc) 640 Bytes
using tdddemoapp;
using Xunit;
namespace TDDDemoAppTests
{
public class TextAnalyzerUnitTests
{
[Fact]
public void GetTotalWordCount_WhenPassedRegularText_ShouldReturnExpectedCount()
{
// arrange
const string textToAnalyze = @"xUnit.net is a free, open source, community-focused
unit testing tool for the .NET Framework.";
var analyzer = new TextAnalyzer();
// act
var count = analyzer.GetTotalWordCount(textToAnalyze);
// assert
Assert.Equal(14,count);
}
}
}