public void PostElementBad()
{
var p = new Port<int> ();
; var elem = new PortElement<double> (99);
try {
p.PostElement (elem);
Assert.Fail ("#1");
} catch (InvalidCastException) {} /*LAMEIMPL, stupid exception to throw*/
try {
p.PostElement (null);
Assert.Fail ("#2");
} catch (NullReferenceException) {} /*LAMEIMPL, stupid exception to throw*/
}