예제 #1
0
파일: StackTest.cs 프로젝트: rNdm74/C-
        public void PeekTestEmptyStack()
        {
            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 actual;

            actual = target.Peek();
        }
예제 #2
0
파일: StackTest.cs 프로젝트: rNdm74/C-
        public void PopTestEmptyStackThenPush()
        {
            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 = target.Pop();                                           // TODO: Initialize to an appropriate value

            item = "Hello";                                                       // TODO: Initialize to an appropriate value
            target.Push(item);
            string actual;

            actual = target.Peek();
        }
예제 #3
0
파일: StackTest.cs 프로젝트: rNdm74/C-
        public void PeekTestHelperDefault()
        {
            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);

            string expected = "Hello"; // TODO: Initialize to an appropriate value
            string actual;

            actual = target.Peek();
            Assert.AreEqual(expected, actual);
        }
예제 #4
0
파일: StackTest.cs 프로젝트: rNdm74/C-
        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);
        }
예제 #5
0
파일: StackTest.cs 프로젝트: rNdm74/C-
 public void PopTestEmptyStackThenPush()
 {
     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 = target.Pop(); // TODO: Initialize to an appropriate value
     item = "Hello"; // TODO: Initialize to an appropriate value
     target.Push(item);
     string actual;
     actual = target.Peek();
 }
예제 #6
0
파일: StackTest.cs 프로젝트: rNdm74/C-
        public void PeekTestHelperDefault()
        {
            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);

            string expected = "Hello"; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.Peek();
            Assert.AreEqual(expected, actual);
        }
예제 #7
0
파일: StackTest.cs 프로젝트: rNdm74/C-
        public void PeekTestEmptyStack()
        {
            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 actual;
            actual = target.Peek();
        }
예제 #8
0
파일: StackTest.cs 프로젝트: rNdm74/C-
        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);
        }