Affecto.Patterns.Cqrs.Tests.AsyncCommandBusTests.EnvelopeCannotBeNull C# (CSharp) Method

EnvelopeCannotBeNull() private method

private EnvelopeCannotBeNull ( ) : void
return void
        public void EnvelopeCannotBeNull()
        {
            try
            {
                sut.SendAsync<TestCommand>(null).Wait();
                Assert.Fail();
            }
            catch (AggregateException e)
            {
                Assert.IsInstanceOfType(e.InnerException, typeof(ArgumentNullException));
            }
        }