BloomTests.CLI.HydrateBookCommandTests.AlreadyHasBloomPlayerFile_ReplacesIt C# (CSharp) Method

AlreadyHasBloomPlayerFile_ReplacesIt() private method

private AlreadyHasBloomPlayerFile_ReplacesIt ( ) : void
return void
        public void AlreadyHasBloomPlayerFile_ReplacesIt()
        {
            var bloomPlayerPath = Path.Combine(Path.GetDirectoryName(_eventualHtmlPath), "bloomPlayer.js");
            File.WriteAllText(bloomPlayerPath, "Some initial text in the file");
            Assert.True(File.Exists(bloomPlayerPath));
            Assert.True(new FileInfo(bloomPlayerPath).Length < 100);
            HydrateBookCommand.Handle(new HydrateParameters
            {
                Path = _bookFolder.FolderPath,
                Preset = "app",
                VernacularIsoCode = "en"
            });
            Assert.True(new FileInfo(bloomPlayerPath).Length > 100);
        }