[Microsoft.CSharp] Replaced with CoreFX implementation
[mono.git] / mcs / tests / test-interpolation-02.cs
index 4667ddd2b59608b8c2ac28302d3530933a6f9661..ac03cea49d6d27d8c7f23685eb825c54464d15c8 100644 (file)
@@ -1,43 +1,6 @@
 using System;
 using System.Linq.Expressions;
 
-namespace System
-{
-       public class FormattableString
-       {
-               public FormattableString (string str, object[] arguments)
-               {
-                       Value = str;
-                       Arguments = arguments;
-               }
-
-               public string Value { get; set; }
-               public object[] Arguments;
-       }
-}
-
-namespace System.Runtime.CompilerServices
-{
-       public static class FormattableStringFactory
-       {
-               public static object Create(string format, params object[] arguments)
-               {
-                       if (format.StartsWith ("format"))
-                               return new MyFormattable ();
-
-                       return new FormattableString (format, arguments);
-               }
-       }
-}
-
-class MyFormattable : IFormattable
-{
-       string IFormattable.ToString (string str, IFormatProvider provider)
-       {
-               return null;
-       }
-}
-
 class ConversionTest
 {
        static int Main ()
@@ -46,12 +9,12 @@ class ConversionTest
 
                FormattableString c1;
                c1 = $"{b}";
-               if (c1.Value != "{0}")
+               if (c1.Format != "{0}")
                        return 1;
 
                IFormattable c2;
                c2 = $"format { b }";
-               if (!(c2 is MyFormattable))
+               if (!(c2 is FormattableString))
                        return 2;
 
                return 0;