コード例 #1
0
        public void Equals_Structurally()
        {
            var one   = new ExchangeRateAt(DateTime.Today, EUR, USD, 1.25m);
            var other = new ExchangeRateAt(DateTime.Today, EUR, USD, 1.25m);

            one.Equals(other).Should().BeTrue();
        }
コード例 #2
0
        public void Equals_Null_Does_Not_Throw()
        {
            var one = new ExchangeRateAt(DateTime.Today, EUR, USD, 1.25m);

            one.Equals(null).Should().BeFalse();
        }