public void Run() { Console.WriteLine($"Expected {CharacterString}"); var bytes = ParseEncodedRepresentation(); var result = TestInterface.DecodeString(SpecificCharacterSets, VR, bytes); Console.WriteLine($" Got {result}"); if (result != CharacterString) { Console.WriteLine($" Failed"); throw new Exception("Actual result differs from expected result"); } Console.WriteLine($" OK"); }