Пример #1
0
        public void DoubleInitialization_RegularBetweenTwoPointsConstructorTest()
        {
            DoublePoint l = new DoublePoint(0);
            DoublePoint r = new DoublePoint(4);
            int         c = 3;
            DoubleInitialization_RegularBetweenTwoPoints target = new DoubleInitialization_RegularBetweenTwoPoints(l, r, c);

            Assert.AreEqual(target.Type, OperatorType.Double);
        }
Пример #2
0
        public void CreateTest()
        {
            DoublePoint leftPoint  = new DoublePoint(0);
            DoublePoint rightPoint = new DoublePoint(4);
            int         howMany    = 3;
            DoubleInitialization_RegularBetweenTwoPoints target = new DoubleInitialization_RegularBetweenTwoPoints(leftPoint, rightPoint, howMany);
            PointSet expected = new PointSet(new HashSet <Point>()
            {
                new DoublePoint(0), new DoublePoint(2), new DoublePoint(4)
            });
            PointSet actual;

            actual = target.Create();

            Assert.AreEqual(expected.Set.Count, actual.Set.Count);
            //Assert.AreEqual(Enumerable.First(expected.Set).StringRepresent(), "");
        }