コード例 #1
0
ファイル: LegacyTest.cs プロジェクト: gnilesh4/csla
        public void TestDpDeleteSelf()
        {
            Legacy test = null;

            try
            {
                test = NewLegacy();
                test = test.Save();
                test.Delete();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("SelfDeleted", TestResults.GetResult("Legacy"));
        }
コード例 #2
0
ファイル: LegacyTest.cs プロジェクト: RobRobertsCE/MVVM
        public void TestDpDeleteSelf()
        {
            Legacy test = null;

            try
            {
                test = Legacy.NewObject();
                test = test.Save();
                test.Delete();
            }
            catch { Assert.Inconclusive(); }
            test.Save();
            Assert.AreEqual("SelfDeleted", ApplicationContext.GlobalContext["Legacy"]);
        }