public void FileComplete_ShouldWriteJsonToOutputFile()
        {
            // Arrange
            const string theOutputPath = "the output path";
            const string theContent    = "The content";
            var          testee        = CreateTestee();

            var outputFilePropertiesMock = A.Fake <INativeOutputFileProperties>();

            A.CallTo(() => outputFilePropertiesMock.OutputFilePath).Returns(theOutputPath);
            testee.SetOutputProperties(outputFilePropertiesMock);

            A.CallTo(() => _rootTokenMock.ToString()).Returns(theContent);

            // Act
            testee.FileComplete();

            // Assert
            A.CallTo(() => _fileHelperMock.WriteAllText(theOutputPath, theContent)).MustHaveHappened();
        }
 public void FileComplete()
 {
     _fileHelper.WriteAllText(_nativeFileProperties.OutputFilePath, _rootToken.ToString());
     _rootToken = null;
 }