コード例 #1
0
        private void ValidateBodyMeasurements(BodyMeasurements bm)
        {
            Assert.IsNotNull(bm);

            Assert.IsNotNull(bm.Body);
            Assert.IsNotNull(bm.Goals);

            // body
            Assert.AreEqual(40, bm.Body.Bicep);
            Assert.AreEqual(16.14f, bm.Body.BMI);
            Assert.AreEqual(11.2f, bm.Body.Calf);
            Assert.AreEqual(50, bm.Body.Chest);
            Assert.AreEqual(0, bm.Body.Fat);
            Assert.AreEqual(22.3f, bm.Body.Forearm);
            Assert.AreEqual(34, bm.Body.Hips);
            Assert.AreEqual(30, bm.Body.Neck);
            Assert.AreEqual(45, bm.Body.Thigh);
            Assert.AreEqual(60, bm.Body.Waist);
            Assert.AreEqual(80.55f, bm.Body.Weight);

            // goals
            Assert.AreEqual(75, bm.Goals.Weight);
        }