public void GivenValuesinGallonLitre_shouldReturnAddition() { VolumesConversion conversionVolumes = new VolumesConversion(); double output = conversionVolumes.AdditionOfVolumes(1, Volumes.gallon, 3.78, Volumes.litre); Assert.AreEqual(7.62, output, 0.01); }
public void GivenGallon_whenEqual_shouldReturnTrue() { VolumesConversion conversionVolumes = new VolumesConversion(); double output = conversionVolumes.ConvertMethod(1, Volumes.gallon, Volumes.litre); Assert.AreEqual(3.84, output, 0.01); }