コード例 #1
0
        public void Should_ReturnDefaultDistanceUnits_IfStringDoesNotMatch()
        {
            var unit   = "obviouslyNotAValidOne";
            var result = DistanceUnits.FromString(unit);

            Assert.Equal(default, result);
コード例 #2
0
        public void Should_ReturnDistanceUnitFromString(string gridType)
        {
            var result = DistanceUnits.FromString(gridType);

            Assert.Equal(result.ToString(), gridType);
        }