Microsoft.Ccr.Core.PortTest.RegisterThrowsOnNull C# (CSharp) Method

RegisterThrowsOnNull() private method

private RegisterThrowsOnNull ( ) : void
return void
        public void RegisterThrowsOnNull()
        {
            try {
                var p = new Port<int> ();
                IPortReceive ipr = p;
                ipr.RegisterReceiver (null);
                Assert.Fail ("#1");
            } catch (ArgumentNullException){}
        }