示例#1
0
        public void WindConditionTest_WithWind()
        {
            TriangleCourse rc = new TriangleCourse();

            rc.Wind          = 3;
            rc.WindDirection = 1;

            Assert.AreEqual(-0.1, rc.WindCondition(3));
        }
示例#2
0
        public void WindConditionTest_NoWind()
        {
            TriangleCourse rc = new TriangleCourse();

            rc.Wind          = 0;
            rc.WindDirection = 1;

            Assert.AreEqual(0, rc.WindCondition(2));
        }