public void UglifyThenPrettifyIsNoOp(string fileNameSlug) { var originalPrettyFileContents = ReadFileContents($"{fileNameSlug}_Pretty.txt"); var uglyOutput = Prettifier.UglifyFileTextString(originalPrettyFileContents); var prettyOutput = Prettifier.PrettifyFileTextString(uglyOutput); prettyOutput.Should().Be(originalPrettyFileContents); }
public void PrettifyThenUglifyIsNoOp(string fileNameSlug) { var originalUglyFileContents = ReadFileContents($"{fileNameSlug}_Ugly.json"); var prettyOutput = Prettifier.PrettifyFileTextString(originalUglyFileContents); var uglyOutput = Prettifier.UglifyFileTextString(prettyOutput); uglyOutput.Should().Be(originalUglyFileContents); }
public void UglifyPrettyFileContents(string fileNameSlug) { var originalPrettyFileContents = ReadFileContents($"{fileNameSlug}_Pretty.txt"); var expectedUglyFileContents = ReadFileContents($"{fileNameSlug}_Ugly.json"); var uglyOutput = Prettifier.UglifyFileTextString(originalPrettyFileContents); uglyOutput.Should().Be(expectedUglyFileContents); }