Пример #1
0
    public void Test_S2LatLngRect_EmptyAndFull()
    {
        // Test basic properties of empty and full rectangles.
        S2LatLngRect empty = S2LatLngRect.Empty;
        S2LatLngRect full  = S2LatLngRect.Full;

        Assert.True(empty.IsValid());
        Assert.True(empty.IsEmpty());
        Assert.False(empty.IsPoint());
        Assert.True(full.IsValid());
        Assert.True(full.IsFull());
        Assert.False(full.IsPoint());
        // Check that the default S2LatLngRect is identical to Empty().
        S2LatLngRect default_empty = S2LatLngRect.Empty;

        Assert.True(default_empty.IsValid());
        Assert.True(default_empty.IsEmpty());
        Assert.Equal(empty.Lat, default_empty.Lat);
        Assert.Equal(empty.Lng, default_empty.Lng);
    }