示例#1
0
文件: SizeTests.cs 项目: mauve/Pash
        public void EqualsShouldReturnFalseForNonSizeObjectBeingCompared()
        {
            var size = new Size(10, 20);

            bool result = size.Equals(new Object());

            Assert.IsFalse(result);
        }
示例#2
0
文件: SizeTests.cs 项目: mauve/Pash
        public void EqualsShouldReturnFalseForSizesWithDifferentHeightAndWidth(int width1, int height1, int width2, int height2)
        {
            var size1 = new Size(width1, height1);
            var size2 = new Size(width2, height2);

            bool result = size1.Equals(size2);

            Assert.IsFalse(result);
        }
示例#3
0
文件: SizeTests.cs 项目: mauve/Pash
        public void EqualsShouldReturnTrueForSizesWithSameHeightAndWidth()
        {
            var size1 = new Size(10, 20);
            var size2 = new Size(10, 20);

            bool result = size1.Equals(size2);

            Assert.IsTrue(result);
        }