public void Constructor1ShouldStoreAndPrintValueAndSymbol() { SpecificGravityOfWater sgw = new SpecificGravityOfWater(10); String correctAnswer = "G_w = 10"; Assert.AreEqual("G_w", sgw.Symbol); Assert.AreEqual(sgw.NumericValue, 10); Assert.AreEqual(correctAnswer, sgw.ToString()); }
public void Constructor2ShouldStoreAndPrintValueAndSymbol() { UnitWeightOfWater uws = new UnitWeightOfWater(10, UnitWeightUnits.GramPerCubicCentimeter); SpecificGravityOfWater sgw = new SpecificGravityOfWater(uws); String correctAnswer = "G_w = 10"; Assert.AreEqual("G_w", sgw.Symbol); Assert.AreEqual(sgw.NumericValue, 10); Assert.AreEqual(correctAnswer, sgw.ToString()); }