public void m2_ares() { converter = new AreaConverter("m2", "are"); double valL = 1; double valR = 0.01; Assert.AreEqual(valR, converter.LeftToRight(valL)); Assert.AreEqual(valL, converter.RightToLeft(valR)); }
public void m2_squarein() { converter = new AreaConverter("m2", "square inch"); double valL = 1; double valR = 1550.0031; Assert.AreEqual(valR, converter.LeftToRight(valL, 4)); Assert.AreEqual(valL, converter.RightToLeft(valR, 4)); }
public void m2_squareyd() { converter = new AreaConverter("m2", "square yard"); double valL = 1; double valR = 1.195990; Assert.AreEqual(valR, converter.LeftToRight(valL, 6)); Assert.AreEqual(valL, converter.RightToLeft(valR, 6)); }
public void m2_squareft() { converter = new AreaConverter("m2", "ft²"); double valL = 1; double valR = 10.76391; Assert.AreEqual(valR, converter.LeftToRight(valL, 6)); Assert.AreEqual(valL, converter.RightToLeft(valR, 6)); }
public void m2_mm2() { converter = new AreaConverter("m²", "mm2"); double valL = 1; double valR = 1000000; Assert.AreEqual(valR, converter.LeftToRight(valL)); Assert.AreEqual(valL, converter.RightToLeft(valR)); }
public void m2_sqmiles() { converter = new AreaConverter("m²", "sq mi"); double valL = 1000000 * 2.589988110336; double valR = 1; Assert.AreEqual(valR, converter.LeftToRight(valL), 8); Assert.AreEqual(valL, converter.RightToLeft(valR), 8); }