public void StringResource_SerializesToJson()
        {
            LoadTestLocalizationDatabaseFromXml();

            UsingCulture("fr-FR", () =>
            {
                var resource = new StringResource("LOCALIZED_RESOURCE");
                var json = JsonConvert.SerializeObject(resource);

                TheResultingString(json).ShouldBe($"\"{resource.Key}\"");
            });
        }
 /// <summary>
 /// Throws a <see cref="NotSupportedException"/> if the current OpenGL context uses the OpenGL ES profile.
 /// </summary>
 /// <param name="message">The exception message.</param>
 public static void ThrowIfGLES(StringResource message)
 {
     if (IsGLES)
     {
         throw new NotSupportedException(message);
     }
 }