DummyFunc.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. namespace ReactiveTests.Dummies
  6. {
  7. internal static class DummyFunc<T>
  8. {
  9. public static readonly Func<T> Instance = () => { throw new NotImplementedException(); };
  10. }
  11. internal static class DummyFunc<T, U>
  12. {
  13. public static readonly Func<T, U> Instance = t => { throw new NotImplementedException(); };
  14. }
  15. internal static class DummyFunc<T, U, V>
  16. {
  17. public static readonly Func<T, U, V> Instance = (t, u) => { throw new NotImplementedException(); };
  18. }
  19. internal static class DummyFunc<T, U, V, W>
  20. {
  21. public static readonly Func<T, U, V, W> Instance = (t, u, v) => { throw new NotImplementedException(); };
  22. }
  23. internal static class DummyFunc<T, U, V, W, X>
  24. {
  25. public static readonly Func<T, U, V, W, X> Instance = (t, u, v, w) => { throw new NotImplementedException(); };
  26. }
  27. internal static class DummyAction
  28. {
  29. public static readonly Action Instance = () => { throw new NotImplementedException(); };
  30. }
  31. internal static class DummyAction<T>
  32. {
  33. public static readonly Action<T> Instance = t => { throw new NotImplementedException(); };
  34. }
  35. internal static class DummyAction<T, U>
  36. {
  37. public static readonly Action<T, U> Instance = (t, u) => { throw new NotImplementedException(); };
  38. }
  39. }