Beispiel #1
0
        public void FRect_FullyEncloses()
        {
            FRect A = new FRect(0, 0, 10, 10);
            FRect B = new FRect(3, 3, 3, 3);
            FRect C = new FRect(1, 1, 9, 9); // touching bottom and right
            FRect D = new FRect(3, 3, 11, 11);
            FRect E = new FRect(-1, -1, 10, 10);

            Debug.Assert(!A.FullyEncloses(A));
            Debug.Assert(A.FullyEncloses(B));
            Debug.Assert(!A.FullyEncloses(C));
            Debug.Assert(!A.FullyEncloses(D));
            Debug.Assert(!A.FullyEncloses(E));
        }