Ejemplo n.º 1
0
        public void Constructor_WithInner_InnerExceptionPropertyShouldHaveTheSameValue(int size)
        {
            var inner = new Exception();
            var ex    = new TransactionTooShortException(size, inner);

            Assert.Equal(size, ex.RequiredSize);
            Assert.NotEmpty(ex.Message);
            Assert.Same(inner, ex.InnerException);
        }
Ejemplo n.º 2
0
        public void Constructor_WithValidRequiredSize_RequiredSizePropertyShouldHaveTheSameValue(int size)
        {
            var ex = new TransactionTooShortException(size);

            Assert.Equal(size, ex.RequiredSize);
        }