public void Should_Return_Plan_Text_File(string fileContents) { _fileRepository.GetDictionaryFile().Returns(Encoding.ASCII.GetBytes(fileContents)); FileContentResult result = (FileContentResult)_dictionaryController.Download(); Assert.IsTrue(result.ContentType == "text/plain"); }