示例#1
0
        public void PointIsEmpty_Is_Partially_Empty_Y()
        {
            Point pointChecked = new Point();

            pointChecked.Y = 5;

            Assert.IsFalse(StructVerify.PointIsEmpty(pointChecked));
        }
示例#2
0
        public void PointIsEmpty_Is_Not_Empty()
        {
            Point pointChecked = new Point();

            pointChecked.X = 5;
            pointChecked.Y = -4;

            Assert.IsFalse(StructVerify.PointIsEmpty(pointChecked));
        }
示例#3
0
        public void IntPtrIsEmpty_Is_Not_Empty()
        {
            IntPtr pointChecked = Marshal.StringToHGlobalAnsi("Foobar");;

            Assert.IsFalse(StructVerify.IntPtrIsEmpty(pointChecked));
        }
示例#4
0
        public void IntPtrIsEmpty_Is_Empty()
        {
            IntPtr pointChecked = new IntPtr();

            Assert.IsTrue(StructVerify.IntPtrIsEmpty(pointChecked));
        }
示例#5
0
        public void PointIsEmpty_Is_Empty()
        {
            Point pointChecked = new Point();

            Assert.IsTrue(StructVerify.PointIsEmpty(pointChecked));
        }