コード例 #1
0
        public void EndOfTheScaleNorthDirection()
        {
            WindDirection wind = WindDirection.Create(340);

            Assert.AreEqual("North", wind.Direction);
        }
コード例 #2
0
        public void NorthDirection()
        {
            WindDirection wind = WindDirection.Create(12);

            Assert.AreEqual("North", wind.Direction);
        }
コード例 #3
0
        public void SouthEndEdgeValue()
        {
            WindDirection wind = WindDirection.Create(202);

            Assert.AreEqual("South", wind.Direction);
        }
コード例 #4
0
        public void SouthStartEdgeValue()
        {
            WindDirection wind = WindDirection.Create(158);

            Assert.AreEqual("South", wind.Direction);
        }
コード例 #5
0
        private void DegreeGeaterThan360()
        {
            WindDirection wind = WindDirection.Create(400);

            Assert.AreEqual(null, wind);
        }
コード例 #6
0
        private void DegreeLessThan0()
        {
            WindDirection wind = WindDirection.Create(-5);

            Assert.AreEqual(null, wind);
        }