public void TestMethod1()
        {
            FileExampleController fileExampleController = new FileExampleController();
            FilePathResult        actionResult          = (FilePathResult)fileExampleController.Download1();

            Assert.IsTrue(actionResult.FileName.Contains(@"/Download/165.mp3"));
        }
        public void DownloadFileByNameNegative(string fileName)
        {
            FileExampleController fileExampleController = new FileExampleController();
            ContentResult         actionResult          = (ContentResult)fileExampleController.DownloadFileByName(fileName);

            Assert.IsFalse(actionResult.Content.Contains(fileName));
        }
        public void TestMethod3()
        {
            FileExampleController fileExampleController = new FileExampleController();
            FileStreamResult      actionResult          = (FileStreamResult)fileExampleController.Download3();

            Assert.IsTrue(actionResult.FileDownloadName.Contains(@"1.mp3") && actionResult.FileStream != null);
        }
        public void DownloadFileByNamePositive(string fileName)
        {
            FileExampleController fileExampleController = new FileExampleController();
            FileContentResult     actionResult          = (FileContentResult)fileExampleController.DownloadFileByName(fileName);

            Assert.IsTrue(actionResult.FileDownloadName.Contains(fileName) && actionResult.FileContents.Length > 0);
        }
        public void TestMethod2()
        {
            FileExampleController fileExampleController = new FileExampleController();
            FileContentResult     actionResult          = (FileContentResult)fileExampleController.Download2();

            Assert.IsTrue(actionResult.FileDownloadName.Contains(@"1.mp3") && actionResult.FileContents.Length > 0);
        }