System.Data.Tests.DBConcurrencyExceptionTest.Constructor2 C# (CSharp) Метод

Constructor2() приватный Метод

private Constructor2 ( ) : void
Результат void
        public void Constructor2()
        {
            DBConcurrencyException dbce;
            string msg = "MONO";

            dbce = new DBConcurrencyException(msg);
            Assert.Null(dbce.InnerException);
            Assert.Same(msg, dbce.Message);
            Assert.Null(dbce.Row);
            Assert.Equal(0, dbce.RowCount);

            dbce = new DBConcurrencyException(null);
            Assert.Null(dbce.InnerException);
            Assert.NotNull(dbce.Message);
            Assert.True(dbce.Message.IndexOf(typeof(DBConcurrencyException).FullName) != -1);
            Assert.Null(dbce.Row);

            Assert.Equal(0, dbce.RowCount);

            dbce = new DBConcurrencyException(string.Empty);
            Assert.Null(dbce.InnerException);
            Assert.Equal(string.Empty, dbce.Message);
            Assert.Null(dbce.Row);
            Assert.Equal(0, dbce.RowCount);
        }