コード例 #1
0
        public void Should_MonthYear_Be_Equals()
        {
            MonthYear monthYearOne    = new MonthYear(2021, 3);
            MonthYear monthYearSecond = new MonthYear(2021, 3);
            MonthYear monthYearThree  = monthYearOne;

            Assert.True(monthYearOne.Equals(monthYearSecond));
            Assert.True(monthYearOne.Equals(monthYearThree));
            Assert.True(monthYearOne.GetHashCode() == monthYearThree.GetHashCode());
        }