public void AUserShouldBeAbleToSwitchEncryptionJsonFile() { IEncryptor encryptor = new ReverseEncryptor(); var fileReader = new JsonFileReader(encryptor); var filename = $@"{_currentDirectory}\files\jsonFile.json"; var actualReversedText = fileReader.Read(filename); fileReader.SetEncryptor(VoidEncryptor.Instance); var actualText = fileReader.Read(filename); Assert.AreEqual("}\n\r\"!dlrow olleH\" :\"txet\" \n\r{", actualReversedText); Assert.AreEqual("{\r\n \"text\": \"Hello world!\"\r\n}", actualText); }