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)); }
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)); }