Beispiel #1
0
        public void TestBuildIcon10()
        {
            MessageBoxForm messageBoxForm     = new MessageBoxForm();
            Accessor       messageBoxAccessor = ReflectionAccessor.Wrap(messageBoxForm);

            //Test Procedure Call
            messageBoxForm.BuildIcon((MessageBoxIcon)66);
            //Post Condition Check
        }
Beispiel #2
0
        public void TestBuildIcon09()
        {
            MessageBoxForm messageBoxForm     = new MessageBoxForm();
            Accessor       messageBoxAccessor = ReflectionAccessor.Wrap(messageBoxForm);

            //Test Procedure Call
            messageBoxForm.BuildIcon(MessageBoxIcon.Warning);
            //Post Condition Check
            Assert.AreEqual(SystemIcons.Exclamation, messageBoxAccessor.GetField("m_icon"));
        }
Beispiel #3
0
        public void TestBuildIcon06()
        {
            MessageBoxForm messageBoxForm     = new MessageBoxForm();
            Accessor       messageBoxAccessor = ReflectionAccessor.Wrap(messageBoxForm);

            //Test Procedure Call
            messageBoxForm.BuildIcon(MessageBoxIcon.None);
            //Post Condition Check
            Assert.IsNull(messageBoxAccessor.GetField("m_icon"));
        }