Ejemplo n.º 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"]);
        }
Ejemplo n.º 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"));
        }