Пример #1
0
        public void Size2F_EqualsObject()
        {
            var size1 = new Size2F(123.45f, 456.78f);
            var size2 = new Size2F(123.45f, 456.78f);

            TheResultingValue(size1.Equals((Object)size2)).ShouldBe(true);
            TheResultingValue(size1.Equals("This is a test")).ShouldBe(false);
        }
Пример #2
0
        public void Size2F_EqualsObject()
        {
            var size1 = new Size2F(123.45f, 456.78f);
            var size2 = new Size2F(123.45f, 456.78f);

            TheResultingValue(size1.Equals((Object)size2)).ShouldBe(true);
            TheResultingValue(size1.Equals("This is a test")).ShouldBe(false);
        }
Пример #3
0
        public void Size2F_EqualsSize2F()
        {
            var size1 = new Size2F(123.45f, 456.78f);
            var size2 = new Size2F(123.45f, 456.78f);
            var size3 = new Size2F(123.45f, 555.55f);
            var size4 = new Size2F(222.22f, 456.78f);

            TheResultingValue(size1.Equals(size2)).ShouldBe(true);
            TheResultingValue(size1.Equals(size3)).ShouldBe(false);
            TheResultingValue(size1.Equals(size4)).ShouldBe(false);
        }
Пример #4
0
        public void Size2F_EqualsSize2F()
        {
            var size1 = new Size2F(123.45f, 456.78f);
            var size2 = new Size2F(123.45f, 456.78f);
            var size3 = new Size2F(123.45f, 555.55f);
            var size4 = new Size2F(222.22f, 456.78f);

            TheResultingValue(size1.Equals(size2)).ShouldBe(true);
            TheResultingValue(size1.Equals(size3)).ShouldBe(false);
            TheResultingValue(size1.Equals(size4)).ShouldBe(false);
        }