Ejemplo n.º 1
0
        public void A_User_Should_be_Able_to_Read_An_Encrypted_TextFile_ExtensionMethod()
        {
            string fileName = "EncryptedContentJson.json";

            var    jsonFileReader = new JsonFileReader(filePath, fileName);
            string contentFile    = jsonFileReader.ReadAndDecrypt();

            Assert.Equal("{\"title\": \"Person\",\"type\": \"object\",\"lastName\": {\"type\": \"string\"}}", contentFile);
        }