Esempio n. 1
0
        public void Equals_Should_Return_False_For_Different_PointS_As_Object()
        {
            var point1 = new PointS(1, 2);
            var point2 = new PointS(2, 3);

            point1.Equals((object)point2).Should().BeFalse();
        }
Esempio n. 2
0
        public void Equals_Should_Return_True_For_Same_PointS_As_Object()
        {
            var point1 = new PointS(1, 2);
            var point2 = new PointS(1, 2);

            point1.Equals((object)point2).Should().BeTrue();
        }
Esempio n. 3
0
        public void Equals_Should_Return_False_For_Null_Object()
        {
            var point1 = new PointS(1, 2);

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