Ejemplo n.º 1
0
        public void EqualsMethodObj_Test04()
        {
            Monetary currencya = 12.234m;
            object   currencyb = "string";

            Assert.That(!currencya.Equals(currencyb));
        }
Ejemplo n.º 2
0
        public void EqualsMethodDecimal_Test02()
        {
            Monetary      currencya = 12.234m;
            const decimal currencyb = 12.234m;

            Assert.That(currencya.Equals(currencyb));
        }
Ejemplo n.º 3
0
        public void EqualsMethodObj_Test02()
        {
            Monetary currencya = 12.234m;
            object   currencyb = 12.234m;

            Assert.That(currencya.Equals(currencyb));
        }
Ejemplo n.º 4
0
        public void EqualsMethod_Test01()
        {
            Monetary currencya = 12.234m;
            Monetary currencyb = 12.234m;

            Assert.That(currencya.Equals(currencyb));
        }