public void U16toU16_Inline() { string round; using (var handle = new ClipboardHandle()) { handle.Open(); handle.SetFormat(ClipboardFormat.UnicodeText, _text); round = handle.GetFormatType(ClipboardFormat.UnicodeText); handle.Empty(); } StrCompare(round); }
public void ANSItoU16() { var reference = "Hello, I am a test! :)"; string round; using (var handle = new ClipboardHandle()) { handle.Open(); handle.SetFormat(ClipboardFormat.Text, reference); } using (var handle = new ClipboardHandle()) { handle.Open(); round = handle.GetFormatType(ClipboardFormat.UnicodeText); handle.Empty(); } StrCompare(round, reference); }