예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TerrainRow"/> class.
        /// </summary>
        /// <param name="box">The box.</param>
        /// <param name="terrainReference">The terrain reference.</param>
        /// <param name="resolution">The resolution.</param>
        /// <param name="testProgress">The test progress reporting instance.</param>
        internal TerrainRow([NotNull] IEnvelope box,
                            [NotNull] TerrainReference terrainReference,
                            double resolution,
                            [NotNull] ITestProgress testProgress)
        {
            Assert.ArgumentNotNull(box, nameof(box));
            Assert.ArgumentNotNull(terrainReference, nameof(terrainReference));
            Assert.ArgumentNotNull(testProgress, nameof(testProgress));

            Extent           = box;
            TerrainReference = terrainReference;
            _resolution      = resolution;

            _testProgress = testProgress;
            DatasetName   = Assert.NotNull(TerrainReference.Name);
        }
예제 #2
0
 internal int GetTerrainIndex([CanBeNull] TerrainReference terrain, int occurrence)
 {
     // TODO there are calls with null from TestContainer.ExecuteCore()
     return(GetIndex(terrain, InvolvedTerrains, occurrence, (x, y) => x.EqualsCore(y)));
 }
예제 #3
0
 public bool Equals(TerrainReference other)
 {
     return(EqualsCore(other));
 }
예제 #4
0
 public abstract bool EqualsCore([NotNull] TerrainReference terrainReference);