Esempio n. 1
0
        public void Constructor1ShouldStoreAndPrintValueAndSymbol()
        {
            VoidRatio vr            = new VoidRatio(.1);
            String    correctAnswer = "e = 0.1";

            Assert.AreEqual("e", vr.Symbol);
            Assert.AreEqual(vr.NumericValue, .1);
            Assert.AreEqual(correctAnswer, vr.ToString());
        }
Esempio n. 2
0
        public void Constructor2ShouldStoreAndPrintValueAndSymbol()
        {
            VolumeOfVoids       vv = new VolumeOfVoids(10, VolumeUnits.CubicCentimeters);
            VolumeOfSolidMatter vs = new VolumeOfSolidMatter(10, VolumeUnits.CubicCentimeters);
            VoidRatio           vr = new VoidRatio(vv, vs);
            String correctAnswer   = "e = 1";

            Assert.AreEqual("e", vr.Symbol);
            Assert.AreEqual(vr.NumericValue, 1);
            Assert.AreEqual(correctAnswer, vr.ToString());
        }