Пример #1
0
        public static void constructor_expected_capacity()
        {
            var mls = new MultiLineString2(10);

            Assert.Equal(0, mls.Count);
            mls.GetMagnitude().Should().Be(Double.NaN);
        }
Пример #2
0
        public static void constructor_default()
        {
            var mls = new MultiLineString2();

            Assert.Equal(0, mls.Count);
            mls.GetMagnitude().Should().Be(Double.NaN);
        }
Пример #3
0
        public static void magnitude() {
            var mls = new MultiLineString2(_lineStrings);
            var expected = mls.Sum(ls => ls.GetMagnitude());

            var actual = mls.GetMagnitude();

            Assert.Equal(expected, actual);
        }
Пример #4
0
        public static void magnitude()
        {
            var mls      = new MultiLineString2(_lineStrings);
            var expected = mls.Sum(ls => ls.GetMagnitude());

            var actual = mls.GetMagnitude();

            Assert.Equal(expected, actual);
        }
Пример #5
0
        public static void constructor_expected_capacity() {
            var mls = new MultiLineString2(10);

            Assert.Equal(0, mls.Count);
            mls.GetMagnitude().Should().Be(Double.NaN);
        }
Пример #6
0
        public static void constructor_default() {
            var mls = new MultiLineString2();

            Assert.Equal(0, mls.Count);
            mls.GetMagnitude().Should().Be(Double.NaN);
        }