Exemplo n.º 1
0
        public virtual bool test()
        {
            ITested tested = getTested();

            tested.say();
            return(false);  // demo test always fails
        }
Exemplo n.º 2
0
        public virtual bool test()
        {
            ITested tested = getTested();

            tested.say();
            return(true);  // demo test always passes
        }
Exemplo n.º 3
0
        public virtual bool test()
        {
            ITested tested = getTested();
            bool    result = tested.say();

            return(result); // demo test always passes
        }
Exemplo n.º 4
0
        public virtual bool test()
        {
            ITested tested = getTested();

            tested.say();
            Exception ex = new Exception("this test always throws an exception");

            if (tested != null)
            {
                throw ex;
            }
            return(false);  // demo test always fails
        }
Exemplo n.º 5
0
        public virtual bool test()
        {
            ITested tested = getTested();
            int     value  = tested.say(1, 0);

            //Console.WriteLine(value);
            if (value == 10)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 6
0
        public virtual bool test()
        {
            ITested tested = getTested();

            return(tested.say("Testing CodeToTest3.dll"));
        }
        public virtual void test()
        {
            ITested tested = getTested();

            tested.say();
        }