Represents a subset of the Earth.
Esempio n. 1
0
        public void UnimplementedMethodsShouldThrow()
        {
            int srid = TestContext.CurrentContext.Random.Next();
            var sut  = new Mock <Geography>(srid)
            {
                CallBase = true
            }.Object;

            TestDelegate[] unimplementedMethods =
            {
                () => Assert.IsNull(Geography.Load(default(Stream),              default)),
                () => Assert.IsNull(Geography.Load(default(ReadOnlySpan <byte>), default)),
                () => Assert.IsNull(Geography.Read(default,                      default)),
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // STContains(other_geography)
 public virtual bool Contains(Geography other) => this.Relate(other).IsContains();
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // Filter(other_geography)
 public virtual bool MightIntersect(Geography other) => throw new NotImplementedException();
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // STUnion(other_geography)
 public virtual Geography Union(Geography other) => throw new NotImplementedException();
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // (no direct SQL Server equivalent)
 public abstract IntersectionMatrix Relate(Geography other);
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // STDistance(other_geography)
 public virtual double Distance(Geography other) => throw new NotImplementedException();
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // STSymDifference(other_geography)
 public virtual Geography SymmetricDifference(Geography other) => throw new NotImplementedException();
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // STWithin(other_geography)
 public virtual bool Within(Geography other) => this.Relate(other).IsWithin();
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // STOverlaps(other_geography)
 public virtual bool Overlaps(Geography other) => this.Relate(other).IsOverlaps(this.Dimension, other.Dimension);
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // STIntersects(other_geography)
 public virtual bool Intersects(Geography other) => this.Relate(other).IsIntersects();
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // STEquals(other_geography)
 public virtual bool EqualsTopologically(Geography other) => this.Relate(other).IsEquals(this.Dimension, other.Dimension);
 /// <summary>
 /// TODO: xmldoc.
 /// </summary>
 // STDisjoint(other_geography)
 public virtual bool Disjoint(Geography other) => this.Relate(other).IsDisjoint();