Example #1
0
        public void TestAssertExist ()
        {
            Simple simple= new Simple();
            simple.AssertExists();
            simple=default(Simple);
            try{
                simple.AssertExists();
                Assert.Fail("Fail");
            }
            catch{
                Console.WriteLine("first pass");
            }


            simple=null;
            try{
                simple.AssertExists();
                Assert.Fail("Fail");
            }
            catch{

                Console.WriteLine("second pass");
            }

        }