public void ExecuteCreatesCorrectTextFile(
            [Greedy] Base64StringToFile sut,
            byte[] value)
        {
            sut.Input = Convert.ToBase64String(value);

            var actual = sut.Execute();

            Assert.True(actual);
            sut.FileWriter.ToMock().Verify(x => x.Write(sut.OutputFile, value));
        }
 public void OutputFileIsReadWritable(Base64StringToFile sut, string outputFile)
 {
     sut.OutputFile = outputFile;
     Assert.Equal(outputFile, sut.OutputFile);
 }
 public void FileWriterIsCorrect(Base64StringToFile sut)
 {
     Assert.IsAssignableFrom <FileWriter>(sut.FileWriter);
 }
 public void InputIsReadWritable(Base64StringToFile sut, string input)
 {
     sut.Input = input;
     Assert.Equal(input, sut.Input);
 }
 public void SutIsTask(Base64StringToFile sut)
 {
     Assert.IsAssignableFrom <Task>(sut);
 }
 public void OutputFileIsReadWritable(Base64StringToFile sut, string outputFile)
 {
     sut.OutputFile = outputFile;
     Assert.Equal(outputFile, sut.OutputFile);
 }
 public void InputIsReadWritable(Base64StringToFile sut, string input)
 {
     sut.Input = input;
     Assert.Equal(input, sut.Input);
 }
 public void FileWriterIsCorrect(Base64StringToFile sut)
 {
     Assert.IsAssignableFrom<FileWriter>(sut.FileWriter);
 }
 public void SutIsTask(Base64StringToFile sut)
 {
     Assert.IsAssignableFrom<Task>(sut);
 }