using System; using UnitTestSharp; namespace Blacklight.Core.UnitTests { // Nothing here touches the real clipboard, which belongs to whoever is running the tests. public class WinFormsClipboardTests : TestFixture { public class SetTextTests : TestFixture { public void NullText_Throws() { var clipboard = new WinFormsClipboard(); CheckThrow(typeof(ArgumentNullException)); clipboard.SetText(null); } } } }