コード例 #1
0
        public void CompareTo_RespectsOrder(int order1, int order2, int expectedValue)
        {
            var x = new RouteEntry();
            var y = new RouteEntry();

            x.Order = order1;
            y.Order = order2;

            Assert.Equal(expectedValue, x.CompareTo(y));
        }
コード例 #2
0
        public void CompareTo_RespectsOrder(int order1, int order2, int expectedValue)
        {
            var x = new RouteEntry();
            var y = new RouteEntry();

            x.Order = order1;
            y.Order = order2;

            Assert.Equal(expectedValue, x.CompareTo(y));
        }
コード例 #3
0
        public void CompareTo_RespectsOrder(int order1, int order2, int expectedValue)
        {
#if ASPNETWEBAPI
            var x = new HttpRouteEntry();
            var y = new HttpRouteEntry();
#else
            var x = new RouteEntry();
            var y = new RouteEntry();
#endif

            x.Order = order1;
            y.Order = order2;

            Assert.Equal(expectedValue, x.CompareTo(y));
        }
コード例 #4
0
ファイル: RouteEntryTest.cs プロジェクト: terry2012/DSV
        public void CompareTo_RespectsOrder(int order1, int order2, int expectedValue)
        {
#if ASPNETWEBAPI
            var x = new HttpRouteEntry();
            var y = new HttpRouteEntry();
#else
            var x = new RouteEntry();
            var y = new RouteEntry();
#endif

            x.Order = order1;
            y.Order = order2;

            Assert.Equal(expectedValue, x.CompareTo(y));
        }