Exemple #1
0
        public void CountTestEmptyStack()
        {
            int param0 = 5; // TODO: Initialize to an appropriate value
            Stack_Accessor<string> target = new Stack_Accessor<string>(param0); // TODO: Initialize to an appropriate value

            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Count();
            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void CountTestEmptyStack()
        {
            int param0 = 5;                                                       // TODO: Initialize to an appropriate value
            Stack_Accessor <string> target = new Stack_Accessor <string>(param0); // TODO: Initialize to an appropriate value

            int expected = 0;                                                     // TODO: Initialize to an appropriate value
            int actual;

            actual = target.Count();
            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void CountTestDefault()
        {
            int param0 = 5; // TODO: Initialize to an appropriate value
            Stack_Accessor<string> target = new Stack_Accessor<string>(param0); // TODO: Initialize to an appropriate value
            string item = "Hello"; // TODO: Initialize to an appropriate value
            target.Push(item);
            target.Push(item);
            target.Push(item);

            int expected = 3; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Count();
            Assert.AreEqual(expected, actual);
        }
Exemple #4
0
        public void PeekTestCheckDoesntRemoveItem()
        {
            int param0 = 5;                                                       // TODO: Initialize to an appropriate value
            Stack_Accessor <string> target = new Stack_Accessor <string>(param0); // TODO: Initialize to an appropriate value
            string item = "Hello";                                                // TODO: Initialize to an appropriate value

            target.Push(item);
            item = target.Peek();

            int expected = 1; // TODO: Initialize to an appropriate value
            int actual;

            actual = target.Count();
            Assert.AreEqual(expected, actual);
        }
Exemple #5
0
        public void CountTestDefault()
        {
            int param0 = 5;                                                       // TODO: Initialize to an appropriate value
            Stack_Accessor <string> target = new Stack_Accessor <string>(param0); // TODO: Initialize to an appropriate value
            string item = "Hello";                                                // TODO: Initialize to an appropriate value

            target.Push(item);
            target.Push(item);
            target.Push(item);

            int expected = 3; // TODO: Initialize to an appropriate value
            int actual;

            actual = target.Count();
            Assert.AreEqual(expected, actual);
        }
Exemple #6
0
        public void PeekTestCheckDoesntRemoveItem()
        {
            int param0 = 5; // TODO: Initialize to an appropriate value
            Stack_Accessor<string> target = new Stack_Accessor<string>(param0); // TODO: Initialize to an appropriate value
            string item = "Hello"; // TODO: Initialize to an appropriate value
            target.Push(item);
            item = target.Peek();

            int expected = 1; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Count();
            Assert.AreEqual(expected, actual);
        }