Beispiel #1
0
        public void TestMethodListPoint()
        {
            //Arrange
            ListOne <double> l = new ListOne <double>();
            //Act
            Point <double> p = l.MakePoint(0.3);

            //Assert
            Assert.IsTrue(p.Data == 0.3);
        }
Beispiel #2
0
        public void TestMethodListAdd1()
        {
            //Arrange
            ListOne <double> l = new ListOne <double>();

            //Act
            l.Add(1, l.MakePoint(1));
            //Assert
            Assert.IsTrue(l.Length == 1);
        }
Beispiel #3
0
        public void TestMethodListAdd2()
        {
            //Arrange
            double[]         arr = new double[] { 0.2, 0.4 };
            ListOne <double> l   = new ListOne <double>(arr);

            //Act
            l.Add(2, l.MakePoint(1));
            //Assert
            Assert.IsTrue(l.Length == 3);
        }