예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }