public void validateButtonsAreEnabledOnMeniu() { InterfataVizualaMeniu meniu = new InterfataVizualaMeniu(); Assert.IsTrue(meniu.buttonAdaugaCamera.Enabled); Assert.IsTrue(meniu.buttonAdaugaUser.Enabled); }
public void validateInputsAreEnabledOnMeniu() { InterfataVizualaMeniu meniu = new InterfataVizualaMeniu(); Assert.IsTrue(meniu.textBoxNumarCameraAdaugaCamera.Enabled); Assert.IsTrue(meniu.textBoxNumarCameraAdaugaUser.Enabled); Assert.IsTrue(meniu.textBoxNumeUser.Enabled); }
public void clearTextBoxCamera() { InterfataVizualaMeniu meniu = new InterfataVizualaMeniu(); meniu.InitializeComponent(); meniu.textBoxNumarCameraAdaugaCamera.AppendText("333"); meniu.buttonAdaugaCamera_Click(meniu, EventArgs.Empty); Assert.AreEqual("", meniu.textBoxNumarCameraAdaugaCamera.Text); }
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); }
public void buttonHelp() { InterfataVizualaMeniu meniu = new InterfataVizualaMeniu(); Assert.AreEqual(DialogResult.None, meniu.buttonHelp.DialogResult); }
public void ButonAdaugaUser() { InterfataVizualaMeniu meniu = new InterfataVizualaMeniu(); Assert.AreEqual(DialogResult.None, meniu.buttonAdaugaUser.DialogResult); }
public void Setup() { interfataMeniu = new InterfataVizualaMeniu(); }