Beispiel #1
0
        public void ToSqlMoney()
        {
            SqlMoney sqlTestMoney;

            sqlTestMoney = _sqlTrue.ToSqlMoney();
            Assert.Equal(1M, sqlTestMoney.Value);

            sqlTestMoney = _sqlFalse.ToSqlMoney();
            Assert.Equal(0, sqlTestMoney.Value);
        }
Beispiel #2
0
        public void ToSqlMoney()
        {
            SqlMoney SqlTestMoney;

            String error = "ToSqlMoney method does not work correctly ";

            SqlTestMoney = SqlTrue.ToSqlMoney();
            Assert.AreEqual(1.0000M, SqlTestMoney.Value, error);

            SqlTestMoney = SqlFalse.ToSqlMoney();
            Assert.AreEqual((decimal)0, SqlTestMoney.Value, error);
        }
Beispiel #3
0
        public void ToSqlMoney()
        {
            SqlMoney SqlTestMoney;

            string error = "ToSqlMoney method does not work correctly ";

            SqlTestMoney = _sqlTrue.ToSqlMoney();
            Assert.Equal(1.0000M, SqlTestMoney.Value);

            SqlTestMoney = _sqlFalse.ToSqlMoney();
            Assert.Equal(0, SqlTestMoney.Value);
        }