예제 #1
0
        public void Equals_Object_IsType()
        {
            object target = new MonthYearPart(4, 2013);
            var    actual = new MonthYearPart(4, 2013).Equals(target);

            actual.Should().BeTrue();
        }
예제 #2
0
        public void Equals_Object_IsNotType()
        {
            var actual = new MonthYearPart(4, 2000).Equals("Hello");

            actual.Should().BeFalse();
        }
예제 #3
0
        public void Equals_Type_IsFalse()
        {
            var actual = new MonthYearPart(5, 2012).Equals(new MonthYearPart(4, 2013));

            actual.Should().BeFalse();
        }
예제 #4
0
        public void Equals_Object_IsNull()
        {
            var actual = new MonthYearPart(4, 2013).Equals(null);

            actual.Should().BeFalse();
        }
예제 #5
0
        public void Equals_Type_IsTrue()
        {
            var actual = new MonthYearPart(4, 2013).Equals(new MonthYearPart(4, 2013));

            actual.Should().BeTrue();
        }