Exemple #1
0
 public void ClearC()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData('C');
     Assert.AreEqual("0", calculator.getDisplay());
 }
Exemple #2
0
 public void ClearCE()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData('E');                          //jaki Char?
     Assert.AreEqual("0", calculator.getDisplay());
 }
Exemple #3
0
 public void NumOperNum()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData('+');
     calculator.sendData('3');
     Assert.AreEqual("3", calculator.getDisplay());
 }
Exemple #4
0
 public void Sinus()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('9');
     calculator.sendData('0');
     calculator.sendData('S');
     Assert.AreEqual("1", calculator.getDisplay());
 }
Exemple #5
0
 public void DotInside()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData(',');
     calculator.sendData('3');
     Assert.AreEqual("4,3", calculator.getDisplay());
 }
Exemple #6
0
 public void ClearBackspace()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData('3');
     calculator.sendData('1');
     calculator.sendData('B');
     Assert.AreEqual("43", calculator.getDisplay());
 }
Exemple #7
0
 public void NumberNumber()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData('7');
     calculator.sendData('2');
     calculator.sendData('3');
     calculator.sendData('7');
     Assert.AreEqual("47237", calculator.getDisplay());
 }
Exemple #8
0
 public void OperafterSinus()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('9');
     calculator.sendData('0');
     calculator.sendData('S');
     calculator.sendData('+');
     calculator.sendData('4');
     calculator.sendData('=');
     Assert.AreEqual("5", calculator.getDisplay());
 }
Exemple #9
0
 public void SinusafterOper()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('8');
     calculator.sendData('6');
     calculator.sendData('+');
     calculator.sendData('4');
     calculator.sendData('=');
     calculator.sendData('S');
     Assert.AreEqual("1", calculator.getDisplay());
 }
Exemple #10
0
 public void NumOperNumDiffOperEq()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData('+');
     calculator.sendData('3');
     calculator.sendData('*');
     calculator.sendData('2');
     calculator.sendData('=');
     Assert.AreEqual("14", calculator.getDisplay());
 }
Exemple #11
0
 public void ClearCEOper()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData('+');
     calculator.sendData('2');
     calculator.sendData('E');
     calculator.sendData('+');
     calculator.sendData('5');
     calculator.sendData('=');
     Assert.AreEqual("9", calculator.getDisplay());
 }
Exemple #12
0
 public void ClearCafterOperDot()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData(',');
     calculator.sendData('3');
     calculator.sendData('+');
     calculator.sendData(',');
     calculator.sendData('1');
     calculator.sendData('C');
     Assert.AreEqual("0", calculator.getDisplay());
 }
Exemple #13
0
 public void DotInsideOperEq()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData('4');
     calculator.sendData(',');
     calculator.sendData('3');
     calculator.sendData('+');
     calculator.sendData('2');
     calculator.sendData(',');
     calculator.sendData('1');
     calculator.sendData('=');
     Assert.AreEqual("6,4", calculator.getDisplay());
 }
Exemple #14
0
 public void DotStart()
 {
     calculator = new Calculator.KalkulatorWeqqen.Calculator();
     calculator.sendData(',');
     Assert.AreEqual("0,", calculator.getDisplay());
 }