aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers.Test
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-06-26 11:23:33 +0100
committerJon Skeet <jonskeet@google.com>2015-06-26 20:13:07 +0100
commitfb77cc9d9f066a8ce4f12e8d5f76188d48101444 (patch)
tree430514e0a7f98dd195d720e2a90a9f3183808fb7 /csharp/src/ProtocolBuffers.Test
parentaa5104143cca3bf3e9f44a79f96e394960f45662 (diff)
downloadprotobuf-fb77cc9d9f066a8ce4f12e8d5f76188d48101444.tar.gz
protobuf-fb77cc9d9f066a8ce4f12e8d5f76188d48101444.tar.bz2
protobuf-fb77cc9d9f066a8ce4f12e8d5f76188d48101444.zip
More cleanup, based around searches for "Google.ProtocolBuffers"
- Remove some old proto2-based C#-only messages - Remove the "build" directory which only contained out-of-date files - Remove the csharp_namespace option from proto2 messages - Change "Google.ProtocolBuffers" to "Google.Protobuf" in other messages
Diffstat (limited to 'csharp/src/ProtocolBuffers.Test')
-rw-r--r--csharp/src/ProtocolBuffers.Test/App.xaml8
-rw-r--r--csharp/src/ProtocolBuffers.Test/App.xaml.cs60
2 files changed, 0 insertions, 68 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/App.xaml b/csharp/src/ProtocolBuffers.Test/App.xaml
deleted file mode 100644
index d4f1f2e3..00000000
--- a/csharp/src/ProtocolBuffers.Test/App.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- x:Class="ProtocolBuffers.SilverlightTest.App"
- >
- <Application.Resources>
-
- </Application.Resources>
-</Application>
diff --git a/csharp/src/ProtocolBuffers.Test/App.xaml.cs b/csharp/src/ProtocolBuffers.Test/App.xaml.cs
deleted file mode 100644
index 0c9fd9e6..00000000
--- a/csharp/src/ProtocolBuffers.Test/App.xaml.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Windows;
-using Microsoft.Silverlight.Testing;
-
-namespace Google.ProtocolBuffers
-{
- public partial class App : Application
- {
-
- public App()
- {
- this.Startup += this.Application_Startup;
- this.Exit += this.Application_Exit;
- this.UnhandledException += this.Application_UnhandledException;
-
- //InitializeComponent();
- }
-
- private void Application_Startup(object sender, StartupEventArgs e)
- {
- this.RootVisual = UnitTestSystem.CreateTestPage();
- }
-
- private void Application_Exit(object sender, EventArgs e)
- {
-
- }
- private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
- {
- // If the app is running outside of the debugger then report the exception using
- // the browser's exception mechanism. On IE this will display it a yellow alert
- // icon in the status bar and Firefox will display a script error.
- if (!System.Diagnostics.Debugger.IsAttached)
- {
-
- // NOTE: This will allow the application to continue running after an exception has been thrown
- // but not handled.
- // For production applications this error handling should be replaced with something that will
- // report the error to the website and stop the application.
- e.Handled = true;
- Deployment.Current.Dispatcher.BeginInvoke(
- new EventHandler<ApplicationUnhandledExceptionEventArgs>(ReportErrorToDOM),
- new object[] { sender, e } );
- }
- }
- private void ReportErrorToDOM(object sender, ApplicationUnhandledExceptionEventArgs e)
- {
- try
- {
- string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
- errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
-
- System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight 2 Application " + errorMsg + "\");");
- }
- catch (Exception)
- {
- }
- }
- }
-} \ No newline at end of file