public string MeterToYard(decimal number)
        {
            LengthConvert convert = new LengthConvert();
            decimal       result  = convert.MeterToYard(number);

            return($"The length is: {result}");
        }
        public string YardToFeet(decimal number)
        {
            LengthConvert convert = new LengthConvert();
            decimal       result  = convert.YardToFeet(number);

            return($"The length is: {result}");
        }
        public string FeetToMeter(decimal number)
        {
            LengthConvert convert = new LengthConvert();
            decimal       result  = convert.FeetToMeter(number);

            return($"The length is: {result}");
        }
Beispiel #4
0
 public void ConvertInchToFeet6()
 {
     Assert.AreEqual(0.5, LengthConvert.ConvertInchToFeet(6.0));
 }
Beispiel #5
0
 public void ConvertInchToFeet30()
 {
     Assert.AreEqual(2.5, LengthConvert.ConvertInchToFeet(30.0));
 }
Beispiel #6
0
 public void ConvertInchToFeet48()
 {
     Assert.AreEqual(4.0, LengthConvert.ConvertInchToFeet(48.0));
 }
Beispiel #7
0
 public void ConvertFeetToInch0_5()
 {
     Assert.AreEqual(6.0, LengthConvert.ConvertFeetToInch(0.5));
 }
Beispiel #8
0
 public void ConvertFeetToInch2_5()
 {
     Assert.AreEqual(30.0, LengthConvert.ConvertFeetToInch(2.5));
 }
Beispiel #9
0
 public void ConvertFeetToInch1()
 {
     Assert.AreEqual(12.0, LengthConvert.ConvertFeetToInch(1.0));
 }