[System.Net.Http] HttpClient timeout range checks. Fixes #25755
[mono.git] / mcs / tests / gtest-643.cs
1 using System;
2 using System.Collections.Generic;
3
4 class Program
5 {
6         public static void Main()
7         {
8         }
9
10         private static IEnumerable<float> FindIntersections<TVector>(
11                 IBezier<TVector> bezier,
12                 Ray<TVector> ray,
13                 float epsilon,
14                 Range<float> t1,
15                 int depth) where TVector : IVector<TVector>
16         {
17                 var bounds = bezier.GetBounds();
18                 if (Intersect.s(ray, bounds))
19                 {
20                         var intersections1 = new float[] { };
21                         var intersections2 = new float[] { };
22                         foreach (var t in intersections1) { yield return t; }
23                         foreach (var t in intersections2) { yield return t; }
24                 }
25         }
26
27         public static class Intersect
28         {
29                 public static bool s<TVector>(Ray<TVector> ray, BoundingBoxN<TVector> box) where TVector : IVector<TVector>
30                 {
31                         throw new NotImplementedException();
32                 }
33         }
34
35         public struct Range<T>
36         {
37         }
38
39         public class Ray<TVector> where TVector : IVector<TVector>
40         {
41         }
42
43         public interface IBezier<TVector>
44                 where TVector : IVector<TVector>
45         {
46                 BoundingBoxN<TVector> GetBounds();
47         }
48
49         public interface IVector<T> : IEpsilonEquatable<T, float>
50                 where T : IVector<T>
51         {
52         }
53
54         public interface IEpsilonEquatable<TType, TEpsilon> // ReSharper enable TypeParameterCanBeVariant
55         {
56         }
57
58         public struct BoundingBoxN<T>
59                 where T : IVector<T>
60         {
61         }
62 }