コード例 #1
0
        public void Contains_finds_start_state()
        {
            Leg leggy = new Leg {
                End = State.Alabama, Start = State.Ohio, Length = 3.4M
            };

            Assert.IsTrue(leggy.Contains(State.Ohio));
        }
コード例 #2
0
        public void Contains_finds_no_state()
        {
            Leg leggy = new Leg {
                End = State.Alabama, Start = State.Ohio, Length = 3.4M
            };

            Assert.IsFalse(leggy.Contains(State.Oregon));
        }