@Test public void whenSubstractSecondFromFirstThenResultOne() { Calculator calc = new Calculator(); calc.substtruct(2d, 1d); assertThat(calc.result, is(1d)); }
public void substtruct (double first, double second) { this.result = first - second; }
Calculator { public void substtruct (double first, double second) { this.result = first - second; } }
Calculator { public void substtruct (double first, double second) { this.result = first - second; }  }
Calculator { public void substtruct (double first, double second) { this.result = first - second; }  void add(double first, double second); void substtruct(double first, double second); void div(double first, double second); void multiple(double first, double second); }
Calculator { public void substtruct (double first, double second) { this.result = first - second; }  void add(double first, double second); void substtruct(double first, double second); void div(double first, double second); void multiple(double first, double second); public double result; }