public void Add() { IAdds iadd = new Adds(); Arithmetic arithmetic = new Arithmetic(iadd); int res = arithmetic.Add(1, 2); Assert.Equal(3, res); }
public void AddMuItiple(int parmaA, int parmaB) { IAdds iadd = new Adds(); Arithmetic arithmetic = new Arithmetic(iadd); int res = arithmetic.Add(parmaA, parmaB); Assert.Equal(parmaA + parmaB, res); }