示例#1
0
        public void TestDpDeleteSelf()
        {
            Split test = null;

            try
            {
                test = Split.NewObject();
                test = test.Save();
                test.Delete();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("SelfDeleted", ApplicationContext.GlobalContext["Split"]);
        }
示例#2
0
        public void TestDpDeleteSelf()
        {
            IDataPortal <Split> dataPortal = _testDIContext.CreateDataPortal <Split>();

            Split test = null;

            try
            {
                test = Split.NewObject(dataPortal);
                test = test.Save();
                test.Delete();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("SelfDeleted", TestResults.GetResult("Split"));
        }