コード例 #1
0
        public void DivideNormal()
        {
            Coordinate coordinate1 = new GeodeticCoordinate(2.0, 2.0);
            Coordinate coordinate2 = new GeodeticCoordinate(1.0, 1.0);
            Coordinate result      = new GeodeticCoordinate(2.0, 2.0);

            Coordinate div = coordinate1.Divide(coordinate2);

            Assert.True(div == result);
        }
コード例 #2
0
        public void DivideNullCoordinate2()
        {
            Coordinate coordinate1 = new GeodeticCoordinate(2.0, 2.0);

            Assert.Throws <ArgumentNullException>(() => coordinate1.Divide(null));
        }