Exemplo n.º 1
0
        public void IsEmptyTestStackEmpty()
        {
            int param0 = 5;                                                       // TODO: Initialize to an appropriate value
            Stack_Accessor <string> target = new Stack_Accessor <string>(param0); // TODO: Initialize to an appropriate value

            bool expected = true;                                                 // TODO: Initialize to an appropriate value
            bool actual;

            actual = target.IsEmpty();
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void IsEmptyTestStackHasItem()
        {
            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);

            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;

            actual = target.IsEmpty();
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void IsEmptyTestAfterFillingStackThenPoppingStack()
        {
            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);
            target.Push(item);
            target.Push(item);
            item = target.Pop();
            item = target.Pop();
            item = target.Pop();
            item = target.Pop();
            item = target.Pop();

            bool expected = true; // TODO: Initialize to an appropriate value
            bool actual;

            actual = target.IsEmpty();
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 4
0
        public void IsEmptyTestAfterFillingStackThenPoppingStack()
        {
            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);
            target.Push(item);
            target.Push(item);
            item = target.Pop();
            item = target.Pop();
            item = target.Pop();
            item = target.Pop();
            item = target.Pop();

            bool expected = true; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsEmpty();
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 5
0
        public void IsEmptyTestStackHasItem()
        {
            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);

            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsEmpty();
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 6
0
        public void IsEmptyTestStackEmpty()
        {
            int param0 = 5; // TODO: Initialize to an appropriate value
            Stack_Accessor<string> target = new Stack_Accessor<string>(param0); // TODO: Initialize to an appropriate value

            bool expected = true; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsEmpty();
            Assert.AreEqual(expected, actual);
        }