예제 #1
0
        protected void SetBmiBoundary()
        {
            var bmiBoundary = BmiBoundaryAttribute.Get(this._type);

            this._upper = bmiBoundary.Upper;
            this._lower = bmiBoundary.Lower;
        }
예제 #2
0
        public void Get_GenderLower_ShouldBe_20()
        {
            var target = BmiBoundaryAttribute.Get(Gender.Male);

            var actual   = target.Lower;
            var expected = 20;

            Assert.AreEqual(actual, expected);
        }