示例#1
0
        public void validateButtonsAreEnabledOnMeniu()
        {
            InterfataVizualaMeniu meniu = new InterfataVizualaMeniu();

            Assert.IsTrue(meniu.buttonAdaugaCamera.Enabled);
            Assert.IsTrue(meniu.buttonAdaugaUser.Enabled);
        }
示例#2
0
        public void validateInputsAreEnabledOnMeniu()
        {
            InterfataVizualaMeniu meniu = new InterfataVizualaMeniu();

            Assert.IsTrue(meniu.textBoxNumarCameraAdaugaCamera.Enabled);
            Assert.IsTrue(meniu.textBoxNumarCameraAdaugaUser.Enabled);
            Assert.IsTrue(meniu.textBoxNumeUser.Enabled);
        }
示例#3
0
        public void clearTextBoxCamera()
        {
            InterfataVizualaMeniu meniu = new InterfataVizualaMeniu();

            meniu.InitializeComponent();

            meniu.textBoxNumarCameraAdaugaCamera.AppendText("333");
            meniu.buttonAdaugaCamera_Click(meniu, EventArgs.Empty);

            Assert.AreEqual("", meniu.textBoxNumarCameraAdaugaCamera.Text);
        }
示例#4
0
        public void clearTextBoxCameraSiUserSuccess()
        {
            InterfataVizualaMeniu meniu = new InterfataVizualaMeniu();

            meniu.InitializeComponent();

            //creaza camera
            meniu.textBoxNumarCameraAdaugaCamera.AppendText("333");
            meniu.buttonAdaugaCamera_Click(meniu, EventArgs.Empty);

            //adauga User la camera
            meniu.textBoxNumarCameraAdaugaUser.AppendText("333");
            meniu.textBoxNumeUser.AppendText("Valentin");
            meniu.buttonAdaugaUser_Click(meniu, EventArgs.Empty);
            Assert.AreEqual("", meniu.textBoxNumarCameraAdaugaUser.Text);
            Assert.AreEqual("", meniu.textBoxNumeUser.Text);
        }
示例#5
0
        public void buttonHelp()
        {
            InterfataVizualaMeniu meniu = new InterfataVizualaMeniu();

            Assert.AreEqual(DialogResult.None, meniu.buttonHelp.DialogResult);
        }
示例#6
0
        public void ButonAdaugaUser()
        {
            InterfataVizualaMeniu meniu = new InterfataVizualaMeniu();

            Assert.AreEqual(DialogResult.None, meniu.buttonAdaugaUser.DialogResult);
        }
示例#7
0
 public void Setup()
 {
     interfataMeniu = new InterfataVizualaMeniu();
 }