예제 #1
0
        public void PersistentChoiceTest()
        {
            var test = new PersistentChoice(DialogResult.Yes);

            Assert.AreEqual(DialogResult.Yes, test.DialogResult);
            test.Reset(10);
            Assert.AreEqual(10, test.NumRecs);
            test.ProcessedOne();
            Assert.AreEqual(9, test.NumRecs);
        }
예제 #2
0
        public void PersistentChoice()
        {
            var pc = new PersistentChoice(DialogResult.Yes);

            _MessageBox.PersistentChoice("message", "Title", pc, "Yes", "no");
        }