コード例 #1
0
        public void Equals_CompareEqualDecimalGeoCoordinates_ReturnsTrue()
        {
            // Arrange
            DecimalGeoCoordinate testCoordinate = new DecimalGeoCoordinate(1.50000001, 5.9);
            _sut = new DecimalGeoCoordinate(1.50000001, 5.9);

            // Act
            bool areEqual = _sut.Equals(testCoordinate);

            // Assert
            Assert.IsTrue(areEqual);
        }
コード例 #2
0
        public void Equals_CompareNonEqualDecimalGeoCoordinates_ReturnsFalse()
        {
            // Arrange
            DecimalGeoCoordinate testCoordinate = new DecimalGeoCoordinate(1.6, 15.0);
            _sut = new DecimalGeoCoordinate(11.2, 12.0);

            // Act
            bool areEqual = _sut.Equals(testCoordinate);

            // Assert
            Assert.IsFalse(areEqual);
        }