public void implimentationForConversion() { ConversionForDistance conversion = new ConversionForDistance(); double output = conversion.ConvertMethod(1.0, Distance.Meters, Distance.Meters); Assert.AreEqual(1.0, output); }
public void addition() { ConversionForDistance conversion = new ConversionForDistance(); double output = conversion.Addition(2, Distance.Inches, 3, Distance.Inches); Assert.AreEqual(5.00, output, 0.01); }
public void giveninches_ShouldConvertCM() { ConversionForDistance conversion = new ConversionForDistance(); double output = conversion.ConvertMethod(2, Distance.Inches, Distance.Centimeters); Assert.AreEqual(5.08, output, 0.01); }
public void given_ft_shouldReturnYD() { ConversionForDistance conversion = new ConversionForDistance(); double output = conversion.ConvertMethod(3, Distance.Feet, Distance.Yards); Assert.AreEqual(1.00, output, 0.01); }
public void givenFeet_shouldRetruninch() { ConversionForDistance conversion = new ConversionForDistance(); double output = conversion.ConvertMethod(1, Distance.Feet, Distance.Inches); Assert.AreEqual(12.00, output, 0.01); }
public void givenZeroFeet_shouldRetrunZeroFeet() { ConversionForDistance conversion = new ConversionForDistance(); double output = conversion.ConvertMethod(0.0, Distance.Feet, Distance.Feet); Assert.AreEqual(0.0, output); }
public void InMaster() { ConversionForDistance conversion = new ConversionForDistance(); double output = conversion.ConvertMethod(1.0, Distance.Meters, Distance.Meters); Assert.AreEqual(1.0, output); }