Exemple #1
0
        public void addToEmptyLineCollection()
        {
            ILineCollection noLineCollection = new EmptyLineCollection();
            ILine           line             = new FakeLine();

            noLineCollection[0] = line;
        }
Exemple #2
0
        public void invalidGetOneLineCollection()
        {
            ILine           line = new FakeLine();
            ILineCollection oneLineCollection = new OneLineCollection(line);

            ILine line2 = oneLineCollection[-1];
        }
Exemple #3
0
        public void createOneLineCollection()
        {
            ILine           line = new FakeLine();
            ILineCollection oneLineCollection = new OneLineCollection(line);

            Assert.AreEqual(oneLineCollection.Size, 1);
            Assert.AreEqual(oneLineCollection[0], line);
        }
Exemple #4
0
        public void invalidSetLineCollection()
        {
            ILineCollection lineCollection = new LineCollection(3);

            ILine line = new FakeLine();

            lineCollection[3] = line;
        }
Exemple #5
0
        public void invalidSetOneLineCollection()
        {
            ILine           line = new FakeLine();
            ILineCollection oneLineCollection = new OneLineCollection(line);

            ILine line2 = new FakeLine();

            oneLineCollection[1] = line2;
        }
Exemple #6
0
        public void setOneLineCollection()
        {
            ILine           line = new FakeLine();
            ILineCollection oneLineCollection = new OneLineCollection(line);

            ILine line2 = new FakeLine();

            oneLineCollection[0] = line2;

            Assert.AreEqual(oneLineCollection.Size, 1);
            Assert.AreEqual(oneLineCollection[0], line2);
        }
Exemple #7
0
        public void setLineCollection()
        {
            ILineCollection lineCollection = new LineCollection(3);

            ILine line1 = new FakeLine();
            ILine line2 = new FakeLine();
            ILine line3 = new FakeLine();

            lineCollection[0] = line1;

            Assert.AreEqual(lineCollection.Size, 3);
            Assert.AreEqual(lineCollection[0], line1);
            Assert.IsNull(lineCollection[1]);
            Assert.IsNull(lineCollection[2]);

            lineCollection[1] = line2;
            lineCollection[2] = line3;

            Assert.AreEqual(lineCollection.Size, 3);
            Assert.AreEqual(lineCollection[0], line1);
            Assert.AreEqual(lineCollection[1], line2);
            Assert.AreEqual(lineCollection[2], line3);
        }
Exemple #8
0
 public Line GetExamples()
 {
     return(FakeLine.GetFake_Bitcoin_Price());
 }
Exemple #9
0
 public List <Line> GetExamples()
 {
     return(FakeLine.GetFake_List());
 }