Пример #1
0
        public void Test_TwoEqualValues_DifferentSymbols_AreNotEqual()
        {
            var value1 = new CurrencyValue("£123.45");
            var value2 = new CurrencyValue("$123.45");

            Check.That(value1.Equals(value2)).IsFalse();
        }
Пример #2
0
        public void Test_TwoEqualValues_AreEqual()
        {
            var value1 = new CurrencyValue("£123.45");
            var value2 = new CurrencyValue("123.45 £");

            Check.That(value1.Equals(value2)).IsTrue();
        }