public void UnRegisterThrowsOnNull() { try { var p = new Port<int> (); IPortReceive ipr = p; ipr.UnregisterReceiver (null); Assert.Fail ("#1"); } catch (ArgumentNullException){} }