Commit eac64a5f authored by csharptest's avatar csharptest Committed by rogerk

- Upgraded NUnit

- Added StatLight and Silverlight unit testing
- Added copies of all projects for Silverlight
- Integrated Silverlight unit tests in build
parent 5e48fef6
...@@ -66,7 +66,7 @@ Targets For GenerateSource ...@@ -66,7 +66,7 @@ Targets For GenerateSource
*********************************************************************************************** --> *********************************************************************************************** -->
<Target Name="_BuildProtoGen"> <Target Name="_BuildProtoGen">
<MSBuild Targets="Build" ToolsVersion="3.5" <MSBuild Targets="Rebuild" ToolsVersion="3.5"
Projects="$(ProjectDirectory)\src\ProtocolBuffers\ProtocolBuffers.csproj;$(ProjectDirectory)\src\ProtoGen\ProtoGen.csproj" Projects="$(ProjectDirectory)\src\ProtocolBuffers\ProtocolBuffers.csproj;$(ProjectDirectory)\src\ProtoGen\ProtoGen.csproj"
Properties="Step=_BuildProtoGen;Configuration=Release;Platform=AnyCPU;TargetFrameworkVersion=v2.0;DebugType=none;DocumentationFile=;TreatWarningsAsErrors=true;OutputPath=$(BuildOutputDirectory)\ProtoGen;" /> Properties="Step=_BuildProtoGen;Configuration=Release;Platform=AnyCPU;TargetFrameworkVersion=v2.0;DebugType=none;DocumentationFile=;TreatWarningsAsErrors=true;OutputPath=$(BuildOutputDirectory)\ProtoGen;" />
</Target> </Target>
...@@ -93,13 +93,18 @@ Targets For GenerateSource ...@@ -93,13 +93,18 @@ Targets For GenerateSource
Targets For Test Targets For Test
*********************************************************************************************** --> *********************************************************************************************** -->
<Target Name="_Test" Condition="$(BuildConfiguration)=='Debug' or $(BuildConfiguration)=='Release'"> <Target Name="_Test">
<CallTarget Targets="_RunTests" /> <CallTarget Targets="_RunTests" />
</Target> </Target>
<Target Name="_RunTests"> <Target Name="_RunTests">
<!-- NUnit -->
<Copy SourceFiles="$(NUnitExeConfig)" DestinationFiles="$(NUnitExePath).config" /> <Copy SourceFiles="$(NUnitExeConfig)" DestinationFiles="$(NUnitExePath).config" />
<Exec Command="&quot;$(NUnitExePath)&quot; /nologo /noshadow %(TestContainer.Identity) /xml:$(BuildTempDirectory)\%(TestContainer.Filename).$(BuildConfiguration).xml" /> <Exec Condition="$(BuildConfiguration)=='Debug' or $(BuildConfiguration)=='Release'"
Command="&quot;$(NUnitExePath)&quot; /nologo /noshadow %(TestContainer.Identity) /xml:$(BuildTempDirectory)\%(TestContainer.Filename).xml" />
<!-- StatLight -->
<Exec Condition="$(BuildConfiguration)=='Debug_Silverlight' or $(BuildConfiguration)=='Release_Silverlight'"
Command="&quot;$(StatLightExePath)&quot; -x %(StatLightTestContainer.Identity) --ReportOutputFileType=NUnit --ReportOutputFile=$(BuildTempDirectory)\%(StatLightTestContainer.Filename).xml" />
</Target> </Target>
<!-- ********************************************************************************************** <!-- **********************************************************************************************
...@@ -121,7 +126,6 @@ Targets For Package ...@@ -121,7 +126,6 @@ Targets For Package
<Exec Command="&quot;$(ZipExePath)&quot; a -tzip ..\$(PackageName).zip * -r" WorkingDirectory="$(BuildOutputPackage)" /> <Exec Command="&quot;$(ZipExePath)&quot; a -tzip ..\$(PackageName).zip * -r" WorkingDirectory="$(BuildOutputPackage)" />
</Target> </Target>
<!-- ********************************************************************************************** <!-- **********************************************************************************************
Targets For Benchmark Targets For Benchmark
*********************************************************************************************** --> *********************************************************************************************** -->
......
...@@ -41,8 +41,9 @@ ...@@ -41,8 +41,9 @@
<ProtocExePath>$(LibDirectory)\protoc.exe</ProtocExePath> <ProtocExePath>$(LibDirectory)\protoc.exe</ProtocExePath>
<ProtogenExePath>$(BuildOutputDirectory)\ProtoGen\protogen.exe</ProtogenExePath> <ProtogenExePath>$(BuildOutputDirectory)\ProtoGen\protogen.exe</ProtogenExePath>
<ProtoBenchExePath>$(BuildTempDirectory)\ProtoBench.exe</ProtoBenchExePath> <ProtoBenchExePath>$(BuildTempDirectory)\ProtoBench.exe</ProtoBenchExePath>
<NUnitExePath>$(LibDirectory)\NUnit 2.2.8.0\nunit-console.exe</NUnitExePath> <NUnitExePath>$(LibDirectory)\NUnit\tools\nunit-console.exe</NUnitExePath>
<NUnitExeConfig>$(LibDirectory)\NUnit 2.2.8.0\nunit-console.$(ForcedFrameworkVersion).config</NUnitExeConfig> <NUnitExeConfig>$(LibDirectory)\NUnit-config\nunit-console.$(ForcedFrameworkVersion).config</NUnitExeConfig>
<StatLightExePath>$(LibDirectory)\StatLight\tools\StatLight.exe</StatLightExePath>
<ZipExePath>$(LibDirectory)\7-Zip 9.20\7za.exe</ZipExePath> <ZipExePath>$(LibDirectory)\7-Zip 9.20\7za.exe</ZipExePath>
</PropertyGroup> </PropertyGroup>
...@@ -171,6 +172,10 @@ ...@@ -171,6 +172,10 @@
<TestContainer Include="$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffersMixedLite.Test.dll" /> <TestContainer Include="$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffersMixedLite.Test.dll" />
<TestContainer Include="$(SourceDirectory)\ProtoGen.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffers.ProtoGen.Test.dll" /> <TestContainer Include="$(SourceDirectory)\ProtoGen.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffers.ProtoGen.Test.dll" />
<StatLightTestContainer Include="$(SourceDirectory)\ProtocolBuffers.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffers.Test.xap" />
<StatLightTestContainer Include="$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffersLite.Test.xap" />
<StatLightTestContainer Include="$(SourceDirectory)\ProtocolBuffersLite.Test\bin\$(BuildConfiguration)\Google.ProtocolBuffersLiteMixed.Test.xap" />
<DynamicPackageItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(BuildConfiguration)\Google.ProtocolBuffers.*" /> <DynamicPackageItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(BuildConfiguration)\Google.ProtocolBuffers.*" />
<DynamicPackageItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(BuildConfiguration)\Google.ProtocolBuffersLite.*" /> <DynamicPackageItem Include="$(SourceDirectory)\ProtocolBuffers\bin\$(BuildConfiguration)\Google.ProtocolBuffersLite.*" />
<DynamicPackageItem Include="$(SourceDirectory)\ProtocolBuffers.Serialization\bin\$(BuildConfiguration)\Google.ProtocolBuffers.Serialization.*" /> <DynamicPackageItem Include="$(SourceDirectory)\ProtocolBuffers.Serialization\bin\$(BuildConfiguration)\Google.ProtocolBuffers.Serialization.*" />
...@@ -200,7 +205,7 @@ ...@@ -200,7 +205,7 @@
<!-- targets --> <!-- targets -->
<Target Name="Clean" DependsOnTargets="_Clean" /> <Target Name="Clean" DependsOnTargets="_Clean" />
<Target Name="Build" DependsOnTargets="GenerateSource;_Compile;_Test" /> <Target Name="Build" DependsOnTargets="GenerateSource;_Compile;_Test" />
<Target Name="Test" DependsOnTargets="_RunTests" /> <Target Name="Test" DependsOnTargets="_Test" />
<Target Name="Rebuild" DependsOnTargets="Clean;Build" /> <Target Name="Rebuild" DependsOnTargets="Clean;Build" />
<Target Name="GenerateSource" DependsOnTargets="_BuildProtoGen;_GenerateSource;_CopyGeneratedSource" /> <Target Name="GenerateSource" DependsOnTargets="_BuildProtoGen;_GenerateSource;_CopyGeneratedSource" />
<Target Name="BuildPackage" DependsOnTargets="PrepareOutputDirectory;PreparePackageComponent;GeneratePackage" /> <Target Name="BuildPackage" DependsOnTargets="PrepareOutputDirectory;PreparePackageComponent;GeneratePackage" />
......
<NUnitProject>
<Config name="Default" binpathtype="Auto">
<assembly path="nunit.framework.tests.dll" />
<assembly path="nunit.util.tests.dll" />
<assembly path="nunit.mocks.tests.dll" />
<assembly path="nunit.uikit.tests.dll" />
<assembly path="nunit-console.tests.dll" />
<assembly path="nunit-gui.tests.dll" />
<assembly path="nunit.extensions.tests.dll" />
</Config>
</NUnitProject>
This source diff could not be displayed because it is too large. You can view the blob instead.
@echo off
rem Run a program under a particular version of the .Net framework
rem by setting the COMPLUS_Version environment variable.
rem
rem This command was written by Charlie Poole for the NUnit project.
rem You may use it separately from NUnit at your own risk.
if "%1"=="/?" goto help
if "%1"=="?" goto help
if "%1"=="" goto GetVersion
if /I "%1"=="off" goto RemoveVersion
if "%2"=="" goto SetVersion
goto main
:help
echo Control the version of the .Net framework that is used. The
echo command has several forms:
echo.
echo CLR
echo Reports the version of the CLR that has been set
echo.
echo CLR version
echo Sets the local shell environment to use a specific
echo version of the CLR for subsequent commands.
echo.
echo CLR version command [arguments]
echo Executes a single command using the specified CLR version.
echo.
echo CLR off
echo Turns off specific version selection for commands
echo.
echo The CLR version may be specified as vn.n.n or n.n.n. In addition,
echo the following shortcuts are recognized:
echo net-1.0, 1.0 For version 1.0.3705
echo net-1.1, 1.1 For version 1.1.4322
echo beta2 For version 2.0.50215
echo net-2.0, 2.0 For version 2.0.50727
echo.
echo NOTE:
echo Any specific settings for required or supported runtime in
echo the ^<startup^> section of a program's config file will
echo override the version specified by this command, and the
echo command will have no effect.
echo.
goto done
:main
setlocal
set CMD=
call :SetVersion %1
shift /1
:loop 'Copy remaining arguments to form the command
if "%1"=="" goto run
set CMD=%CMD% %1
shift /1
goto :loop
:run 'Execute the command
%CMD%
endlocal
goto done
:SetVersion
set COMPLUS_Version=%1
rem Substitute proper format for certain names
if /I "%COMPLUS_Version:~0,1%"=="v" goto useit
if /I "%COMPLUS_Version%"=="net-1.0" set COMPLUS_Version=v1.0.3705&goto report
if /I "%COMPLUS_Version%"=="1.0" set COMPLUS_Version=v1.0.3705&goto report
if /I "%COMPLUS_Version%"=="net-1.1" set COMPLUS_Version=v1.1.4322&goto report
if /I "%COMPLUS_Version%"=="1.1" set COMPLUS_Version=v1.1.4322&goto report
if /I "%COMPLUS_Version%"=="beta2" set COMPLUS_Version=v2.0.50215&goto report
if /I "%COMPLUS_Version%"=="net-2.0" set COMPLUS_Version=v2.0.50727&goto report
if /I "%COMPLUS_Version%"=="2.0" set COMPLUS_Version=v2.0.50727&goto report
rem Add additional substitutions here, branching to report
rem assume it's a version number without 'v'
set COMPLUS_Version=v%COMPLUS_Version%
:report
echo Setting CLR version to %COMPLUS_Version%
goto done
:GetVersion
if "%COMPLUS_Version%"=="" echo CLR version is not set
if NOT "%COMPLUS_Version%"=="" echo CLR version is set to %COMPLUS_Version%
goto done
:RemoveVersion
set COMPLUS_Version=
echo CLR version is no longer set
:done
\ No newline at end of file

using System;
namespace Microsoft.VisualStudio.TestTools.UnitTesting
{
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public sealed class TestClassAttribute : NUnit.Framework.TestFixtureAttribute
{
}
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public sealed class TestMethodAttribute : NUnit.Framework.TestAttribute
{
}
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public sealed class TestInitializeAttribute : NUnit.Framework.SetUpAttribute
{
}
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public sealed class IgnoreAttribute : NUnit.Framework.IgnoreAttribute
{
}
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public sealed class ExpectedExceptionAttribute : NUnit.Framework.ExpectedExceptionAttribute
{
public ExpectedExceptionAttribute(Type type) : base(type)
{ }
}
public class Assert : NUnit.Framework.Assert
{
[Obsolete("Do not use AreEqual on Byte[], use TestUtil.AssertBytesEqual(,)")]
public static void AreEqual(byte[] b1, byte[] b2)
{
NUnit.Framework.Assert.AreEqual(b1, b2);
}
[Obsolete("No not use assert with miss-matched types.")]
public static new void AreEqual(object b1, object b2)
{
NUnit.Framework.Assert.AreEqual(b1, b2);
}
//Allowed if the types match
public static void AreEqual<T>(T b1, T b2)
{
NUnit.Framework.Assert.AreEqual(b1, b2);
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>
<startup>
<requiredRuntime version="v2.0.50727" />
</startup>
<runtime>
<!-- We need this so test exceptions don't crash NUnit -->
<legacyUnhandledExceptionPolicy enabled="1" />
<!-- Look for addins in the addins directory for now -->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib;addins"/>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>
<startup>
<requiredRuntime version="v2.0.50727" />
</startup>
<runtime>
<!-- We need this so test exceptions don't crash NUnit -->
<legacyUnhandledExceptionPolicy enabled="1" />
<!-- Look for addins in the addins directory for now -->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib;addins"/>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<requiredRuntime version="v4.0.30319" safemode="true"/>
</startup>
<runtime>
<!-- We need this so test exceptions don't crash NUnit -->
<legacyUnhandledExceptionPolicy enabled="1" />
<!-- Look for addins in the addins directory for now -->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib;addins"/>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<h1>NUnit Acceptance Tests</h1>
<p>
Developers love self-referential programs! Hence, NUnit has always run all it's
own tests, even those that are not really unit tests.
<p>Now, beginning with NUnit 2.4, NUnit has top-level tests using Ward Cunningham's
FIT framework. At this time, the tests are pretty rudimentary, but it's a start
and it's a framework for doing more.
<h2>Running the Tests</h2>
<p>Open a console or shell window and navigate to the NUnit bin directory, which
contains this file. To run the test under Microsoft .Net, enter the command
<pre> runFile NUnitFitTests.html TestResults.html .</pre>
To run it under Mono, enter
<pre> mono runFile.exe NUnitFitTests.html TestResults.html .</pre>
Note the space and dot at the end of each command. The results of your test
will be in TestResults.html in the same directory.
<h2>Platform and CLR Version</h2>
<table BORDER cellSpacing="0" cellPadding="5">
<tr>
<td colspan="2">NUnit.Fixtures.PlatformInfo</td>
</tr>
</table>
<h2>Verify Unit Tests</h2>
<p>
Load and run the NUnit unit tests, verifying that the results are as expected.
When these tests are run on different platforms, different numbers of tests may
be skipped, so the values for Skipped and Run tests are informational only.
<p>
The number of tests in each assembly should be constant across all platforms -
any discrepancy usually means that one of the test source files was not
compiled on the platform. There should be no failures and no tests ignored.
<p><b>Note:</b>
At the moment, the nunit.extensions.tests assembly is failing because the
fixture doesn't initialize addins in the test domain.
<p>
<table BORDER cellSpacing="0" cellPadding="5">
<tr>
<td colspan="6">NUnit.Fixtures.AssemblyRunner</td>
</tr>
<tr>
<td>Assembly</td>
<td>Tests()</td>
<td>Run()</td>
<td>Skipped()</td>
<td>Ignored()</td>
<td>Failures()</td>
</tr>
<tr>
<td>nunit.framework.tests.dll</td>
<td>397</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.core.tests.dll</td>
<td>355</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.util.tests.dll</td>
<td>238</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.mocks.tests.dll</td>
<td>43</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.extensions.tests.dll</td>
<td>5</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit-console.tests.dll</td>
<td>40</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.uikit.tests.dll</td>
<td>34</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit-gui.tests.dll</td>
<td>15</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>nunit.fixtures.tests.dll</td>
<td>6</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>0</td>
<td>0</td>
</tr>
</table>
<h2>Code Snippet Tests</h2>
<p>
These tests create a test assembly from a snippet of code and then load and run
the tests that it contains, verifying that the structure of the loaded tests is
as expected and that the number of tests run, skipped, ignored or failed is
correct.
<p>
<table BORDER cellSpacing="0" cellPadding="5">
<tr>
<td colspan="6">NUnit.Fixtures.SnippetRunner</td>
</tr>
<tr>
<td>Code</td>
<td>Tree()</td>
<td>Run()</td>
<td>Skipped()</td>
<td>Ignored()</td>
<td>Failures()</td>
</tr>
<tr>
<td><pre>public class TestClass
{
}</pre>
</td>
<td>EMPTY</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;
[TestFixture]
public class TestClass
{
}</pre>
</td>
<td>TestClass</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;
[TestFixture]
public class TestClass
{
[Test]
public void T1() { }
[Test]
public void T2() { }
[Test]
public void T3() { }
}</pre>
</td>
<td><pre>TestClass
&gt;T1
&gt;T2
&gt;T3</pre>
</td>
<td>3</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;
[TestFixture]
public class TestClass1
{
[Test]
public void T1() { }
}
[TestFixture]
public class TestClass2
{
[Test]
public void T2() { }
[Test]
public void T3() { }
}</pre>
</td>
<td><pre>TestClass1
&gt;T1
TestClass2
&gt;T2
&gt;T3</pre>
</td>
<td>3</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;
[TestFixture]
public class TestClass
{
[Test]
public void T1() { }
[Test, Ignore]
public void T2() { }
[Test]
public void T3() { }
}</pre>
</td>
<td><pre>TestClass
&gt;T1
&gt;T2
&gt;T3</pre>
</td>
<td>2</td>
<td>0</td>
<td>1</td>
<td>0</td>
</tr>
<tr>
<td><pre>using NUnit.Framework;
[TestFixture]
public class TestClass
{
[Test]
public void T1() { }
[Test, Explicit]
public void T2() { }
[Test]
public void T3() { }
}</pre>
</td>
<td><pre>TestClass
&gt;T1
&gt;T2
&gt;T3</pre>
</td>
<td>2</td>
<td>1</td>
<td>0</td>
<td>0</td>
</tr>
</table>
<h2>Summary Information</h2>
<table BORDER cellSpacing="0" cellPadding="5">
<tr>
<td colspan="2">fit.Summary</td>
</tr>
</table>
</body>
</html>
This diff is collapsed.
This diff is collapsed.
Copyright © 2002-2008 Charlie Poole
Copyright © 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov
Copyright © 2000-2002 Philip A. Craig
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required.
Portions Copyright © 2002-2008 Charlie Poole or Copyright © 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright © 2000-2002 Philip A. Craig
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
This diff is collapsed.
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<configuration> <configuration>
<!-- <!--
This is the configuration file for the NUnitTests.nunit test project. You may This is the configuration file for the NUnitTests.nunit test project. You may
need to create a similar configuration file for your own test project. need to create a similar configuration file for your own test project.
-->
In your own configuration file, the include any appSettings that you require.
The <NUnit> section is only needed if you want to use a non-default value <!--
for any of the settings. The <NUnit> section is only needed if you want to use a non-default value
for any of the settings. It is commented out below. If you are going to use
NOTE: A bug in .NET 2.0 Beta 2.0 requires that you make changes below it, you must deifne the NUnit section group and the sections you need.
when running in that environment. This is supposed to be fixed in a
later release. The syntax shown here works for most runtimes. If NUnit fails at startup, you
--> can try specifying the name of the assembly containing the NameValueSectionHandler:
<configSections>
<sectionGroup name="NUnit"> <section name="TestCaseBuilder" type="System.Configuration.NameValueSectionHandler, System" />
<section name="TestCaseBuilder" type="System.Configuration.NameValueSectionHandler"/>
<section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/> If that fails, try the fully qualified name of the assembly:
<!-- For .NET 2.0 Beta 2 replace the lines with the following -->
<!-- <section name="TestCaseBuilder" type="System.Configuration.NameValueSectionHandler, System,
<section name="TestCaseBuilder" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.50215.44, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> Version=2.0.50727.832, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="TestRunner" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.50215.44, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
--> Unfortunately, this last approach makes your config file non-portable across runtimes.
</sectionGroup> -->
</configSections>
<!--
<appSettings> <configSections>
<!-- User application and configured property settings go here.--> <sectionGroup name="NUnit">
<!-- Example: <add key="settingName" value="settingValue"/> --> <section name="TestCaseBuilder" type="System.Configuration.NameValueSectionHandler"/>
<add key="test.setting" value="54321" /> <section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/>
</appSettings> </sectionGroup>
</configSections>
<NUnit> -->
<TestCaseBuilder>
<add key="OldStyleTestCases" value="false" /> <appSettings>
</TestCaseBuilder> <!-- User application and configured property settings go here.-->
<TestRunner> <!-- Example: <add key="settingName" value="settingValue"/> -->
<!-- Valid values are STA,MTA. Others ignored. --> <add key="test.setting" value="54321" />
<add key="ApartmentState" value="MTA" /> </appSettings>
<!-- See ThreadPriority enum for other valid values --> <!-- Sample NUnit section group showing all default values -->
<add key="ThreadPriority" value="Normal" /> <!--
</TestRunner> <NUnit>
</NUnit> <TestCaseBuilder>
<add key="OldStyleTestCases" value="false" />
<!-- </TestCaseBuilder>
The following <runtime> section allows running nunit tests under <TestRunner>
.NET 1.0 by redirecting assemblies. The appliesTo attribute <add key="ApartmentState" value="MTA" />
causes the section to be ignored except under .NET 1.0. <add key="ThreadPriority" value="Normal" />
--> <add key="DefaultLogThreshold" value="Info" />
<runtime> </TestRunner>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" </NUnit>
appliesTo="v1.0.3705"> -->
<dependentAssembly>
<assemblyIdentity name="System" publicKeyToken="b77a5c561934e089" culture="" /> <!--
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" /> The following <runtime> section allows running nunit tests under
</dependentAssembly> .NET 1.0 by redirecting assemblies. The appliesTo attribute
<dependentAssembly> causes the section to be ignored except under .NET 1.0.
<assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089" culture="" /> -->
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" /> <runtime>
</dependentAssembly> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
<dependentAssembly> appliesTo="v1.0.3705">
<assemblyIdentity name="System.Drawing" publicKeyToken="b03f5f7f11d50a3a" culture="" /> <dependentAssembly>
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" /> <assemblyIdentity name="System" publicKeyToken="b77a5c561934e089" culture="" />
</dependentAssembly> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
<dependentAssembly> </dependentAssembly>
<assemblyIdentity name="System.Windows.Forms" publicKeyToken="b77a5c561934e089" culture="" /> <dependentAssembly>
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" /> <assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089" culture="" />
</dependentAssembly> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
<dependentAssembly> </dependentAssembly>
<assemblyIdentity name="System.Xml" publicKeyToken="b77a5c561934e089" culture="" /> <dependentAssembly>
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" /> <assemblyIdentity name="System.Drawing" publicKeyToken="b03f5f7f11d50a3a" culture="" />
</dependentAssembly> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
</assemblyBinding> </dependentAssembly>
</runtime> <dependentAssembly>
</configuration> <assemblyIdentity name="System.Windows.Forms" publicKeyToken="b77a5c561934e089" culture="" />
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml" publicKeyToken="b77a5c561934e089" culture="" />
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
<NUnitProject>
<Settings appbase="."/>
<Config name="Default" binpath="lib;tests;framework" runtimeFramework="v2.0">
<assembly path="tests/nunit.framework.tests.dll" />
<assembly path="tests/nunit.core.tests.dll" />
<assembly path="tests/nunit.util.tests.dll" />
<assembly path="tests/nunit.mocks.tests.dll" />
<assembly path="tests/nunit-console.tests.dll" />
<assembly path="tests/nunit.uiexception.tests.dll" />
<assembly path="tests/nunit.uikit.tests.dll" />
<assembly path="tests/nunit-gui.tests.dll" />
<assembly path="tests/nunit.fixtures.tests.dll" />
</Config>
</NUnitProject>
This diff is collapsed.
<AgentConfig>
<Port>8080</Port>
<PathToAssemblies>.</PathToAssemblies>
</AgentConfig>
\ No newline at end of file
<log4net>
<!-- A1 is set to be a ConsoleAppender -->
<appender name="A1" type="log4net.Appender.ConsoleAppender">
<!-- A1 uses PatternLayout -->
<layout type="log4net.Layout.PatternLayout">
<!-- Print the date in ISO 8601 format -->
<conversionPattern value="%-5level %logger - %message%newline" />
</layout>
</appender>
<!-- Set root logger level to DEBUG and its only appender to A1 -->
<root>
<level value="DEBUG" />
<appender-ref ref="A1" />
</root>
</log4net>
<log4net>
<!-- A1 is set to be a ConsoleAppender -->
<appender name="A1" type="log4net.Appender.ConsoleAppender">
<!-- A1 uses PatternLayout -->
<layout type="log4net.Layout.PatternLayout">
<!-- Print the date in ISO 8601 format -->
<conversionPattern value="%-5level %logger - %message%newline" />
</layout>
</appender>
<!-- Set root logger level to DEBUG and its only appender to A1 -->
<root>
<level value="DEBUG" />
<appender-ref ref="A1" />
</root>
</log4net>
<?xml version="1.0" encoding="Windows-1252"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup useLegacyV2RuntimeActivationPolicy="true"> <runtime>
<requiredRuntime version="v4.0.30319" safemode="true"/> <!-- We need this so test exceptions don't crash NUnit -->
</startup> <legacyUnhandledExceptionPolicy enabled="1" />
<!-- <!-- Look for addins in the addins directory for now -->
Application settings for NUnit-console.exe. Do NOT put settings <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
for use by your tests here. <probing privatePath="lib;addins"/>
--> </assemblyBinding>
<appSettings>
<!--
<!-- The following <assemblyBinding> section allows running nunit under
Specify the location to be used by .NET for the cache .NET 1.0 by redirecting assemblies. The appliesTo attribute
--> causes the section to be ignored except under .NET 1.0
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" /> on a machine with only the .NET version 1.0 runtime installed.
If application and its tests were built for .NET 1.1 you will
</appSettings> also need to redirect system assemblies in the test config file,
which controls loading of the tests.
<!-- -->
The startup section may be used to specify the runtime versions <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
supported in the order that they will be used if more than one appliesTo="v1.0.3705">
is present. As supplied, this section is commented out, which
causes nunit-console to use the version of the framework with <dependentAssembly>
which it was built. <assemblyIdentity name="System"
publicKeyToken="b77a5c561934e089"
Since .NET 1.0 does not recognize the <supportedRuntime> elements, culture="neutral"/>
a <requiredRuntime> element is used in case it is the only version <bindingRedirect oldVersion="1.0.5000.0"
of the framework that is installed. newVersion="1.0.3300.0"/>
--> </dependentAssembly>
<!--
<startup> <dependentAssembly>
<supportedRuntime version="v2.0.50727" /> <assemblyIdentity name="System.Data"
<supportedRuntime version="v2.0.50215" /> publicKeyToken="b77a5c561934e089"
<supportedRuntime version="v2.0.40607" /> culture="neutral"/>
<supportedRuntime version="v1.1.4322" /> <bindingRedirect oldVersion="1.0.5000.0"
<supportedRuntime version="v1.0.3705" /> newVersion="1.0.3300.0"/>
</dependentAssembly>
<requiredRuntime version="v1.0.3705" />
</startup> <dependentAssembly>
--> <assemblyIdentity name="System.Drawing"
publicKeyToken="b03f5f7f11d50a3a"
<!-- culture="neutral"/>
The following <runtime> section allows running nunit under <bindingRedirect oldVersion="1.0.5000.0"
.NET 1.0 by redirecting assemblies. The appliesTo attribute newVersion="1.0.3300.0"/>
causes the section to be ignored except under .NET 1.0version 1 </dependentAssembly>
on a machine with only the .NET version 1.0 runtime installed.
If application and its tests were built for .NET 1.1 you will <dependentAssembly>
also need to redirect system assemblies in the test config file. <assemblyIdentity name="System.Windows.Forms"
--> publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<runtime> <bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" </dependentAssembly>
appliesTo="v1.0.3705">
<dependentAssembly>
<dependentAssembly> <assemblyIdentity name="System.Xml"
<assemblyIdentity name="System" publicKeyToken="b77a5c561934e089"
publicKeyToken="b77a5c561934e089" culture="neutral"/>
culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0"
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/>
newVersion="1.0.3300.0"/> </dependentAssembly>
</dependentAssembly>
</assemblyBinding>
<dependentAssembly>
<assemblyIdentity name="System.Data" </runtime>
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Drawing"
publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration> </configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<!-- <runtime>
The following <runtime> section allows running the mock-assembyly tests <!-- We need this so test exceptions don't crash NUnit -->
under .NET 1.0 by redirecting assemblies. The appliesTo attribute <legacyUnhandledExceptionPolicy enabled="1" />
causes the section to be ignored except under .NET 1.0.
<!-- Look for addins in the addins directory for now -->
This section is <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
--> <probing privatePath="lib;addins"/>
<runtime> </assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" <!--
appliesTo="v1.0.3705"> The following <assemblyBinding> section allows running nunit under
.NET 1.0 by redirecting assemblies. The appliesTo attribute
<dependentAssembly> causes the section to be ignored except under .NET 1.0
<assemblyIdentity name="System" on a machine with only the .NET version 1.0 runtime installed.
publicKeyToken="b77a5c561934e089" If application and its tests were built for .NET 1.1 you will
culture=""/> also need to redirect system assemblies in the test config file,
<bindingRedirect oldVersion="1.0.5000.0" which controls loading of the tests.
newVersion="1.0.3300.0"/> -->
</dependentAssembly> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
appliesTo="v1.0.3705">
<dependentAssembly>
<assemblyIdentity name="System.Data" <dependentAssembly>
publicKeyToken="b77a5c561934e089" <assemblyIdentity name="System"
culture=""/> publicKeyToken="b77a5c561934e089"
<bindingRedirect oldVersion="1.0.5000.0" culture="neutral"/>
newVersion="1.0.3300.0"/> <bindingRedirect oldVersion="1.0.5000.0"
</dependentAssembly> newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Drawing" <dependentAssembly>
publicKeyToken="b03f5f7f11d50a3a" <assemblyIdentity name="System.Data"
culture=""/> publicKeyToken="b77a5c561934e089"
<bindingRedirect oldVersion="1.0.5000.0" culture="neutral"/>
newVersion="1.0.3300.0"/> <bindingRedirect oldVersion="1.0.5000.0"
</dependentAssembly> newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms" <dependentAssembly>
publicKeyToken="b77a5c561934e089" <assemblyIdentity name="System.Drawing"
culture=""/> publicKeyToken="b03f5f7f11d50a3a"
<bindingRedirect oldVersion="1.0.5000.0" culture="neutral"/>
newVersion="1.0.3300.0"/> <bindingRedirect oldVersion="1.0.5000.0"
</dependentAssembly> newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml" <dependentAssembly>
publicKeyToken="b77a5c561934e089" <assemblyIdentity name="System.Windows.Forms"
culture=""/> publicKeyToken="b77a5c561934e089"
<bindingRedirect oldVersion="1.0.5000.0" culture="neutral"/>
newVersion="1.0.3300.0"/> <bindingRedirect oldVersion="1.0.5000.0"
</dependentAssembly> newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
<dependentAssembly>
</runtime> <assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration> </configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<!-- We need this so test exceptions don't crash NUnit -->
<legacyUnhandledExceptionPolicy enabled="1" />
<!-- Look for addins in the addins directory for now -->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib;addins"/>
</assemblyBinding>
<!--
The following <assemblyBinding> section allows running nunit under
.NET 1.0 by redirecting assemblies. The appliesTo attribute
causes the section to be ignored except under .NET 1.0
on a machine with only the .NET version 1.0 runtime installed.
If application and its tests were built for .NET 1.1 you will
also need to redirect system assemblies in the test config file,
which controls loading of the tests.
-->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
appliesTo="v1.0.3705">
<dependentAssembly>
<assemblyIdentity name="System"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Data"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Drawing"
publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<requiredRuntime version="v4.0.30319" safemode="true"/>
</startup>
<runtime>
<!-- We need this so test exceptions don't crash NUnit -->
<legacyUnhandledExceptionPolicy enabled="1" />
<!-- Look for addins in the addins directory for now -->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib;addins"/>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="Windows-1252"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<!--
<!-- Application settings for NUnit-gui.exe. Do NOT put settings
Application settings for NUnit-gui.exe. Do NOT put settings for use by your tests here.
for use by your tests here. -->
--> <appSettings>
<appSettings> <!--
Uncomment to specify the url to be used for help. If not used, the
<!-- default value is something like
Specify the location to be used by .NET for the cache file://localhost/C:/Program Files/NUnit 2.2/doc/index.html
--> This setting is provided in case your default browser doesn't
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" /> support this format.
-->
<!-- <!-- <add key="helpUrl" value="http://www.nunit.org" /> -->
Uncomment to specify the url to be used for help. If not used, the </appSettings>
default value is something like
file://localhost/C:/Program Files/NUnit 2.2/doc/index.html <runtime>
This setting is provided in case your default browser doesn't <!-- We need this so test exceptions don't crash NUnit -->
support this format. <legacyUnhandledExceptionPolicy enabled="1" />
-->
<!-- <add key="helpUrl" value="http://www.nunit.org" /> --> <!-- Look for addins in the addins directory for now -->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
</appSettings> <probing privatePath="lib;addins" />
</assemblyBinding>
<!-- <!--
The startup section may be used to specify the runtime versions The following <assemblyBinding> section allows running nunit under
supported in the order that they will be used if more than one .NET 1.0 by redirecting assemblies. The appliesTo attribute
is present. As supplied, this section is commented out, which causes the section to be ignored except under .NET 1.0
causes nunit-console to use the version of the framework with on a machine with only the .NET version 1.0 runtime installed.
which it was built. If application and its tests were built for .NET 1.1 you will
also need to redirect system assemblies in the test config file,
Since .NET 1.0 does not recognize the <supportedRuntime> elements, which controls loading of the tests.
a <requiredRuntime> element is used in case it is the only version -->
of the framework that is installed. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
--> appliesTo="v1.0.3705">
<!--
<startup> <dependentAssembly>
<supportedRuntime version="v2.0.50727" /> <assemblyIdentity name="System"
<supportedRuntime version="v2.0.50215" /> publicKeyToken="b77a5c561934e089"
<supportedRuntime version="v2.0.40607" /> culture="neutral"/>
<supportedRuntime version="v1.1.4322" /> <bindingRedirect oldVersion="1.0.5000.0"
<supportedRuntime version="v1.0.3705" /> newVersion="1.0.3300.0"/>
</dependentAssembly>
<requiredRuntime version="v1.0.3705" />
<dependentAssembly>
</startup> <assemblyIdentity name="System.Data"
--> publicKeyToken="b77a5c561934e089"
<!-- culture="neutral"/>
The following <runtime> section allows running nunit under <bindingRedirect oldVersion="1.0.5000.0"
.NET 1.0 by redirecting assemblies. The appliesTo attribute newVersion="1.0.3300.0"/>
causes the section to be ignored except under .NET 1.0 </dependentAssembly>
on a machine with only the .NET version 1.0 runtime installed.
If application and its tests were built for .NET 1.1 you will <dependentAssembly>
also need to redirect system assemblies in the test config file <assemblyIdentity name="System.Drawing"
just as we do for nunit.tests.dll. publicKeyToken="b03f5f7f11d50a3a"
--> culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
<runtime> newVersion="1.0.3300.0"/>
</dependentAssembly>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
appliesTo="v1.0.3705"> <dependentAssembly>
<assemblyIdentity name="System.Windows.Forms"
<dependentAssembly> publicKeyToken="b77a5c561934e089"
<assemblyIdentity name="System" culture="neutral"/>
publicKeyToken="b77a5c561934e089" <bindingRedirect oldVersion="1.0.5000.0"
culture="neutral"/> newVersion="1.0.3300.0"/>
<bindingRedirect oldVersion="1.0.5000.0" </dependentAssembly>
newVersion="1.0.3300.0"/>
</dependentAssembly> <dependentAssembly>
<assemblyIdentity name="System.Xml"
<dependentAssembly> publicKeyToken="b77a5c561934e089"
<assemblyIdentity name="System.Data" culture="neutral"/>
publicKeyToken="b77a5c561934e089" <bindingRedirect oldVersion="1.0.5000.0"
culture="neutral"/> newVersion="1.0.3300.0"/>
<bindingRedirect oldVersion="1.0.5000.0" </dependentAssembly>
newVersion="1.0.3300.0"/>
</dependentAssembly> </assemblyBinding>
<dependentAssembly> </runtime>
<assemblyIdentity name="System.Drawing"
publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration> </configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!--
Application settings for NUnit-gui.exe. Do NOT put settings
for use by your tests here.
-->
<appSettings>
<!--
Uncomment to specify the url to be used for help. If not used, the
default value is something like
file://localhost/C:/Program Files/NUnit 2.2/doc/index.html
This setting is provided in case your default browser doesn't
support this format.
-->
<!-- <add key="helpUrl" value="http://www.nunit.org" /> -->
</appSettings>
<runtime>
<!-- We need this so test exceptions don't crash NUnit -->
<legacyUnhandledExceptionPolicy enabled="1" />
<!-- Look for addins in the addins directory for now -->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib;addins" />
</assemblyBinding>
<!--
The following <assemblyBinding> section allows running nunit under
.NET 1.0 by redirecting assemblies. The appliesTo attribute
causes the section to be ignored except under .NET 1.0
on a machine with only the .NET version 1.0 runtime installed.
If application and its tests were built for .NET 1.1 you will
also need to redirect system assemblies in the test config file,
which controls loading of the tests.
-->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
appliesTo="v1.0.3705">
<dependentAssembly>
<assemblyIdentity name="System"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Data"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Drawing"
publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="Windows-1252"?> <?xml version="1.0" encoding="Windows-1252"?>
<configuration> <configuration>
<startup> <!-- Set the level for tracing NUnit itself -->
<requiredRuntime version="v2.0.50727" /> <!-- 0=Off 1=Error 2=Warning 3=Info 4=Debug -->
</startup> <system.diagnostics>
<switches>
<!-- <add name="NTrace" value="0" />
Application settings for NUnit-console.exe. Do NOT put settings </switches>
for use by your tests here. </system.diagnostics>
-->
<appSettings> <runtime>
<!-- We need this so test exceptions don't crash NUnit -->
<!-- <legacyUnhandledExceptionPolicy enabled="1" />
Specify the location to be used by .NET for the cache
--> <!-- Look for addins in the addins directory for now -->
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" /> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="framework;lib;addins"/>
</appSettings> </assemblyBinding>
<!-- <!--
The startup section may be used to specify the runtime versions The following <assemblyBinding> section allows running nunit under
supported in the order that they will be used if more than one .NET 1.0 by redirecting assemblies. The appliesTo attribute
is present. As supplied, this section is commented out, which causes the section to be ignored except under .NET 1.0
causes nunit-console to use the version of the framework with on a machine with only the .NET version 1.0 runtime installed.
which it was built. If application and its tests were built for .NET 1.1 you will
also need to redirect system assemblies in the test config file,
Since .NET 1.0 does not recognize the <supportedRuntime> elements, which controls loading of the tests.
a <requiredRuntime> element is used in case it is the only version -->
of the framework that is installed. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
--> appliesTo="v1.0.3705">
<!--
<startup> <dependentAssembly>
<supportedRuntime version="v2.0.50727" /> <assemblyIdentity name="System"
<supportedRuntime version="v2.0.50215" /> publicKeyToken="b77a5c561934e089"
<supportedRuntime version="v2.0.40607" /> culture="neutral"/>
<supportedRuntime version="v1.1.4322" /> <bindingRedirect oldVersion="1.0.5000.0"
<supportedRuntime version="v1.0.3705" /> newVersion="1.0.3300.0"/>
</dependentAssembly>
<requiredRuntime version="v1.0.3705" />
</startup> <dependentAssembly>
--> <assemblyIdentity name="System.Data"
publicKeyToken="b77a5c561934e089"
<!-- culture="neutral"/>
The following <runtime> section allows running nunit under <bindingRedirect oldVersion="1.0.5000.0"
.NET 1.0 by redirecting assemblies. The appliesTo attribute newVersion="1.0.3300.0"/>
causes the section to be ignored except under .NET 1.0version 1 </dependentAssembly>
on a machine with only the .NET version 1.0 runtime installed.
If application and its tests were built for .NET 1.1 you will <dependentAssembly>
also need to redirect system assemblies in the test config file. <assemblyIdentity name="System.Drawing"
--> publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<runtime> <bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" </dependentAssembly>
appliesTo="v1.0.3705">
<dependentAssembly>
<dependentAssembly> <assemblyIdentity name="System.Windows.Forms"
<assemblyIdentity name="System" publicKeyToken="b77a5c561934e089"
publicKeyToken="b77a5c561934e089" culture="neutral"/>
culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0"
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/>
newVersion="1.0.3300.0"/> </dependentAssembly>
</dependentAssembly>
<dependentAssembly>
<dependentAssembly> <assemblyIdentity name="System.Xml"
<assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089"
publicKeyToken="b77a5c561934e089" culture="neutral"/>
culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0"
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/>
newVersion="1.0.3300.0"/> </dependentAssembly>
</dependentAssembly>
</assemblyBinding>
<dependentAssembly>
<assemblyIdentity name="System.Drawing" </runtime>
publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration> </configuration>
\ No newline at end of file
<?xml version="1.0" encoding="Windows-1252"?> <?xml version="1.0" encoding="Windows-1252"?>
<configuration> <configuration>
<startup> <!-- Set the level for tracing NUnit itself -->
<requiredRuntime version="v2.0.50727" /> <!-- 0=Off 1=Error 2=Warning 3=Info 4=Debug -->
</startup> <system.diagnostics>
<switches>
<!-- <add name="NTrace" value="0" />
Application settings for NUnit-console.exe. Do NOT put settings </switches>
for use by your tests here. </system.diagnostics>
-->
<appSettings> <runtime>
<!-- We need this so test exceptions don't crash NUnit -->
<!-- <legacyUnhandledExceptionPolicy enabled="1" />
Specify the location to be used by .NET for the cache
--> <!-- Look for addins in the addins directory for now -->
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" /> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="framework;lib;addins"/>
</appSettings> </assemblyBinding>
<!-- <!--
The startup section may be used to specify the runtime versions The following <assemblyBinding> section allows running nunit under
supported in the order that they will be used if more than one .NET 1.0 by redirecting assemblies. The appliesTo attribute
is present. As supplied, this section is commented out, which causes the section to be ignored except under .NET 1.0
causes nunit-console to use the version of the framework with on a machine with only the .NET version 1.0 runtime installed.
which it was built. If application and its tests were built for .NET 1.1 you will
also need to redirect system assemblies in the test config file,
Since .NET 1.0 does not recognize the <supportedRuntime> elements, which controls loading of the tests.
a <requiredRuntime> element is used in case it is the only version -->
of the framework that is installed. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
--> appliesTo="v1.0.3705">
<!--
<startup> <dependentAssembly>
<supportedRuntime version="v2.0.50727" /> <assemblyIdentity name="System"
<supportedRuntime version="v2.0.50215" /> publicKeyToken="b77a5c561934e089"
<supportedRuntime version="v2.0.40607" /> culture="neutral"/>
<supportedRuntime version="v1.1.4322" /> <bindingRedirect oldVersion="1.0.5000.0"
<supportedRuntime version="v1.0.3705" /> newVersion="1.0.3300.0"/>
</dependentAssembly>
<requiredRuntime version="v1.0.3705" />
</startup> <dependentAssembly>
--> <assemblyIdentity name="System.Data"
publicKeyToken="b77a5c561934e089"
<!-- culture="neutral"/>
The following <runtime> section allows running nunit under <bindingRedirect oldVersion="1.0.5000.0"
.NET 1.0 by redirecting assemblies. The appliesTo attribute newVersion="1.0.3300.0"/>
causes the section to be ignored except under .NET 1.0version 1 </dependentAssembly>
on a machine with only the .NET version 1.0 runtime installed.
If application and its tests were built for .NET 1.1 you will <dependentAssembly>
also need to redirect system assemblies in the test config file. <assemblyIdentity name="System.Drawing"
--> publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<runtime> <bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" </dependentAssembly>
appliesTo="v1.0.3705">
<dependentAssembly>
<dependentAssembly> <assemblyIdentity name="System.Windows.Forms"
<assemblyIdentity name="System" publicKeyToken="b77a5c561934e089"
publicKeyToken="b77a5c561934e089" culture="neutral"/>
culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0"
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/>
newVersion="1.0.3300.0"/> </dependentAssembly>
</dependentAssembly>
<dependentAssembly>
<dependentAssembly> <assemblyIdentity name="System.Xml"
<assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089"
publicKeyToken="b77a5c561934e089" culture="neutral"/>
culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0"
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/>
newVersion="1.0.3300.0"/> </dependentAssembly>
</dependentAssembly>
</assemblyBinding>
<dependentAssembly>
<assemblyIdentity name="System.Drawing" </runtime>
publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089"
culture="neutral"/>
<bindingRedirect oldVersion="1.0.5000.0"
newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration> </configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" />
<supportedRuntime version="v2.0.50215" />
<supportedRuntime version="v2.0.40607" />
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v1.0.3705" />
<requiredRuntime version="v1.0.3705" />
</startup>
<!--
The following <runtime> section allows running nunit tests under
.NET 1.0 by redirecting assemblies. The appliesTo attribute
causes the section to be ignored except under .NET 1.0.
-->
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
appliesTo="v1.0.3705">
<dependentAssembly>
<assemblyIdentity name="System" publicKeyToken="b77a5c561934e089" culture="" />
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089" culture="" />
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Drawing" publicKeyToken="b03f5f7f11d50a3a" culture="" />
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Windows.Forms" publicKeyToken="b77a5c561934e089" culture="" />
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Xml" publicKeyToken="b77a5c561934e089" culture="" />
<bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
start pnunit-agent agent.conf
pnunit-launcher test.conf
\ No newline at end of file
<TestGroup>
<ParallelTests>
<ParallelTest>
<Name>Testing</Name>
<Tests>
<TestConf>
<Name>Testing</Name>
<Assembly>pnunit.tests.dll</Assembly>
<TestToRun>TestLibraries.Testing.EqualTo19</TestToRun>
<Machine>localhost:8080</Machine>
<TestParams>
<string>..\server</string> <!-- server dir -->
<string></string> <!-- database server -->
<string></string><!-- conn string -->
</TestParams>
</TestConf>
</Tests>
</ParallelTest>
</ParallelTests>
</TestGroup>
\ No newline at end of file
namespace System.Runtime.CompilerServices
{
/// <summary> Used for 2.0 compatibility </summary>
[AttributeUsage(AttributeTargets.Method)]
public sealed class ExtensionAttribute : Attribute { }
}
c:\Windows\Microsoft.NET\Framework\v2.0.50727\csc /target:library /out:System.Core.dll /keyfile:..\..\keys\Google.ProtocolBuffers.snk ExtensionAttribute.cs
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion> <ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D7282E99-2DC3-405B-946F-177DB2FD2AE2}</ProjectGuid> <ProjectGuid>{D7282E99-2DC3-405B-946F-177DB2FD2AE2}</ProjectGuid>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Google.ProtocolBuffers.ProtoDump</RootNamespace> <RootNamespace>Google.ProtocolBuffers.ProtoDump</RootNamespace>
<AssemblyName>ProtoDump</AssemblyName> <AssemblyName>ProtoDump</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<FileUpgradeFlags> <FileUpgradeFlags>
</FileUpgradeFlags> </FileUpgradeFlags>
<UpgradeBackupLocation> <UpgradeBackupLocation>
</UpgradeBackupLocation> </UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion> <OldToolsVersion>3.5</OldToolsVersion>
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled> <UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode> <UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval> <UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits> <UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically> <UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired> <UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions> <MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision> <ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper> <IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled> <BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="mscorlib" /> <Reference Include="mscorlib" />
<Reference Include="System" /> <Reference Include="System" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\ProtocolBuffers\ProtocolBuffers.csproj"> <ProjectReference Include="..\ProtocolBuffers\ProtocolBuffers.csproj">
<Project>{6908BDCE-D925-43F3-94AC-A531E6DF2591}</Project> <Project>{6908BDCE-D925-43F3-94AC-A531E6DF2591}</Project>
<Name>ProtocolBuffers</Name> <Name>ProtocolBuffers</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="app.config" /> <None Include="app.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5"> <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible> <Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install> <Install>false</Install>
</BootstrapperPackage> </BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible> <Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName> <ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install> <Install>true</Install>
</BootstrapperPackage> </BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible> <Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName> <ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install> <Install>true</Install>
</BootstrapperPackage> </BootstrapperPackage>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
</Target> </Target>
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
</Project> </Project>
\ No newline at end of file
This diff is collapsed.
...@@ -159,8 +159,7 @@ namespace Google.ProtocolBuffers.ProtoGen ...@@ -159,8 +159,7 @@ namespace Google.ProtocolBuffers.ProtoGen
writer.WriteLine("public {0}(pb::IRpcDispatch dispatch) : this(dispatch, true) {{", Descriptor.Name); writer.WriteLine("public {0}(pb::IRpcDispatch dispatch) : this(dispatch, true) {{", Descriptor.Name);
writer.WriteLine("}"); writer.WriteLine("}");
writer.WriteLine("public {0}(pb::IRpcDispatch dispatch, bool dispose) {{", Descriptor.Name); writer.WriteLine("public {0}(pb::IRpcDispatch dispatch, bool dispose) {{", Descriptor.Name);
writer.WriteLine( writer.WriteLine(" pb::ThrowHelper.ThrowIfNull(this.dispatch = dispatch, \"dispatch\");");
" if (null == (this.dispatch = dispatch)) throw new global::System.ArgumentNullException();");
writer.WriteLine(" this.dispose = dispose && dispatch is global::System.IDisposable;"); writer.WriteLine(" this.dispose = dispose && dispatch is global::System.IDisposable;");
writer.WriteLine("}"); writer.WriteLine("}");
writer.WriteLine(); writer.WriteLine();
...@@ -209,8 +208,7 @@ namespace Google.ProtocolBuffers.ProtoGen ...@@ -209,8 +208,7 @@ namespace Google.ProtocolBuffers.ProtoGen
Descriptor.Name); Descriptor.Name);
writer.WriteLine("}"); writer.WriteLine("}");
writer.WriteLine("public Dispatch(I{0} implementation, bool dispose) {{", Descriptor.Name); writer.WriteLine("public Dispatch(I{0} implementation, bool dispose) {{", Descriptor.Name);
writer.WriteLine( writer.WriteLine(" pb::ThrowHelper.ThrowIfNull(this.implementation = implementation, \"implementation\");");
" if (null == (this.implementation = implementation)) throw new global::System.ArgumentNullException();");
writer.WriteLine(" this.dispose = dispose && implementation is global::System.IDisposable;"); writer.WriteLine(" this.dispose = dispose && implementation is global::System.IDisposable;");
writer.WriteLine("}"); writer.WriteLine("}");
writer.WriteLine(); writer.WriteLine();
...@@ -235,9 +233,7 @@ namespace Google.ProtocolBuffers.ProtoGen ...@@ -235,9 +233,7 @@ namespace Google.ProtocolBuffers.ProtoGen
method.Name, NameHelpers.UnderscoresToPascalCase(method.Name), method.Name, NameHelpers.UnderscoresToPascalCase(method.Name),
GetClassName(method.InputType)); GetClassName(method.InputType));
} }
writer.WriteLine( writer.WriteLine("default: throw pb::ThrowHelper.CreateMissingMethod(typeof(I{0}), methodName);", Descriptor.Name);
"default: throw new global::System.MissingMethodException(typeof(I{0}).FullName, methodName);",
Descriptor.Name);
writer.Outdent(); writer.Outdent();
writer.WriteLine("}"); //end switch writer.WriteLine("}"); //end switch
writer.Outdent(); writer.Outdent();
...@@ -272,8 +268,7 @@ namespace Google.ProtocolBuffers.ProtoGen ...@@ -272,8 +268,7 @@ namespace Google.ProtocolBuffers.ProtoGen
writer.WriteLine("public ServerStub(pb::IRpcDispatch implementation) : this(implementation, true) {"); writer.WriteLine("public ServerStub(pb::IRpcDispatch implementation) : this(implementation, true) {");
writer.WriteLine("}"); writer.WriteLine("}");
writer.WriteLine("public ServerStub(pb::IRpcDispatch implementation, bool dispose) {"); writer.WriteLine("public ServerStub(pb::IRpcDispatch implementation, bool dispose) {");
writer.WriteLine( writer.WriteLine(" pb::ThrowHelper.ThrowIfNull(this.implementation = implementation, \"implementation\");");
" if (null == (this.implementation = implementation)) throw new global::System.ArgumentNullException();");
writer.WriteLine(" this.dispose = dispose && implementation is global::System.IDisposable;"); writer.WriteLine(" this.dispose = dispose && implementation is global::System.IDisposable;");
writer.WriteLine("}"); writer.WriteLine("}");
writer.WriteLine(); writer.WriteLine();
...@@ -296,9 +291,7 @@ namespace Google.ProtocolBuffers.ProtoGen ...@@ -296,9 +291,7 @@ namespace Google.ProtocolBuffers.ProtoGen
"case \"{0}\": return implementation.CallMethod(methodName, {1}.ParseFrom(input, registry), {2}.CreateBuilder());", "case \"{0}\": return implementation.CallMethod(methodName, {1}.ParseFrom(input, registry), {2}.CreateBuilder());",
method.Name, GetClassName(method.InputType), GetClassName(method.OutputType)); method.Name, GetClassName(method.InputType), GetClassName(method.OutputType));
} }
writer.WriteLine( writer.WriteLine("default: throw pb::ThrowHelper.CreateMissingMethod(typeof(I{0}), methodName);", Descriptor.Name);
"default: throw new global::System.MissingMethodException(typeof(I{0}).FullName, methodName);",
Descriptor.Name);
writer.Outdent(); writer.Outdent();
writer.WriteLine("}"); //end switch writer.WriteLine("}"); //end switch
writer.Outdent(); writer.Outdent();
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion> <ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{8F09AF72-3327-4FA7-BC09-070B80221AB9}</ProjectGuid> <ProjectGuid>{8F09AF72-3327-4FA7-BC09-070B80221AB9}</ProjectGuid>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Google.ProtocolBuffers.ProtoMunge</RootNamespace> <RootNamespace>Google.ProtocolBuffers.ProtoMunge</RootNamespace>
<AssemblyName>ProtoMunge</AssemblyName> <AssemblyName>ProtoMunge</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<FileUpgradeFlags> <FileUpgradeFlags>
</FileUpgradeFlags> </FileUpgradeFlags>
<UpgradeBackupLocation> <UpgradeBackupLocation>
</UpgradeBackupLocation> </UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion> <OldToolsVersion>3.5</OldToolsVersion>
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled> <UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode> <UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval> <UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits> <UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically> <UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired> <UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions> <MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision> <ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper> <IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled> <BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="mscorlib" /> <Reference Include="mscorlib" />
<Reference Include="System" /> <Reference Include="System" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\ProtocolBuffers\ProtocolBuffers.csproj"> <ProjectReference Include="..\ProtocolBuffers\ProtocolBuffers.csproj">
<Project>{6908BDCE-D925-43F3-94AC-A531E6DF2591}</Project> <Project>{6908BDCE-D925-43F3-94AC-A531E6DF2591}</Project>
<Name>ProtocolBuffers</Name> <Name>ProtocolBuffers</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="app.config" /> <None Include="app.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5"> <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible> <Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install> <Install>false</Install>
</BootstrapperPackage> </BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible> <Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName> <ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install> <Install>true</Install>
</BootstrapperPackage> </BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible> <Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName> <ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install> <Install>true</Install>
</BootstrapperPackage> </BootstrapperPackage>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
</Target> </Target>
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
</Project> </Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{72B69A15-E28E-4738-A779-18D76C87D225}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Google.ProtocolBuffers.Serialization</RootNamespace>
<AssemblyName>Google.ProtocolBuffers.Serialization</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\keys\Google.ProtocolBuffers.snk</AssemblyOriginatorKeyFile>
<OldToolsVersion>3.5</OldToolsVersion>
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<SilverlightApplication>false</SilverlightApplication>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<ValidateXaml>true</ValidateXaml>
<SilverlightVersion Condition=" '$(SilverlightVersion)' == '' ">v2.0</SilverlightVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug_Silverlight|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug_Silverlight\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release_Silverlight|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release_Silverlight\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v2.0' ">
<DefineConstants>NET20;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" Condition="'$(TargetFrameworkVersion)' != 'v2.0'" />
</ItemGroup>
<ItemGroup>
<Compile Include="Extensions.cs" />
<Compile Include="Http\FormUrlEncodedReader.cs" />
<Compile Include="Http\MessageFormatFactory.cs" />
<Compile Include="Http\MessageFormatOptions.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="AbstractReader.cs" />
<Compile Include="AbstractTextReader.cs" />
<Compile Include="AbstractTextWriter.cs" />
<Compile Include="AbstractWriter.cs" />
<Compile Include="DictionaryReader.cs" />
<Compile Include="DictionaryWriter.cs" />
<Compile Include="JsonFormatReader.cs" />
<Compile Include="JsonFormatWriter.cs" />
<Compile Include="JsonTextCursor.cs" />
<Compile Include="RecursionLimitExceeded.cs" />
<Compile Include="XmlFormatReader.cs" />
<Compile Include="XmlFormatWriter.cs" />
<Compile Include="XmlReaderOptions.cs" />
<Compile Include="XmlWriterOptions.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ProtocolBuffers\ProtocolBuffers%28Silverlight%29.csproj">
<Project>{7E4E681E-5D09-43FB-8D9E-35A454730A85}</Project>
<Name>ProtocolBuffers%28Silverlight%29</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
<SilverlightProjectProperties />
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>
\ No newline at end of file
...@@ -14,28 +14,7 @@ ...@@ -14,28 +14,7 @@
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<SignAssembly>true</SignAssembly> <SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\keys\Google.ProtocolBuffers.snk</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile>..\..\keys\Google.ProtocolBuffers.snk</AssemblyOriginatorKeyFile>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion> <OldToolsVersion>3.5</OldToolsVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<SilverlightVersion Condition=" '$(SilverlightVersion)' == '' ">v2.0</SilverlightVersion>
<DefineConstants Condition=" '$(TargetFrameworkVersion)' == 'v2.0' ">NET20;</DefineConstants>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
...@@ -44,11 +23,10 @@ ...@@ -44,11 +23,10 @@
<OutputPath>bin\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile> <DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn> <NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>$(DefineConstants)TRACE;DEBUG;</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
...@@ -56,36 +34,13 @@ ...@@ -56,36 +34,13 @@
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile> <DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn> <NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>$(DefineConstants)TRACE;</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug_Silverlight|AnyCPU'"> <PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v2.0' ">
<DebugSymbols>true</DebugSymbols> <DefineConstants>NET20;$(DefineConstants)</DefineConstants>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug_Silverlight\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>$(DefineConstants)TRACE;DEBUG;SILVERLIGHT</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release_Silverlight|AnyCPU'">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release_Silverlight\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>$(DefineConstants)TRACE;SILVERLIGHT</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="mscorlib" /> <Reference Include="mscorlib" />
...@@ -114,23 +69,6 @@ ...@@ -114,23 +69,6 @@
<Compile Include="XmlReaderOptions.cs" /> <Compile Include="XmlReaderOptions.cs" />
<Compile Include="XmlWriterOptions.cs" /> <Compile Include="XmlWriterOptions.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\ProtocolBuffers\ProtocolBuffers.csproj"> <ProjectReference Include="..\ProtocolBuffers\ProtocolBuffers.csproj">
<Project>{6908BDCE-D925-43F3-94AC-A531E6DF2591}</Project> <Project>{6908BDCE-D925-43F3-94AC-A531E6DF2591}</Project>
...@@ -138,10 +76,7 @@ ...@@ -138,10 +76,7 @@
<Private>False</Private> <Private>False</Private>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition=" '$(Configuration)' == 'Debug' " /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition=" '$(Configuration)' == 'Release' " />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" Condition=" '$(Configuration)' == 'Debug_Silverlight' " />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" Condition=" '$(Configuration)' == 'Release_Silverlight' " />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
......
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{B6CDC03B-EBBD-4F38-9F84-736EC0948090}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Google.ProtocolBuffers.Serialization</RootNamespace>
<AssemblyName>Google.ProtocolBuffersLite.Serialization</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\keys\Google.ProtocolBuffers.snk</AssemblyOriginatorKeyFile>
<OldToolsVersion>3.5</OldToolsVersion>
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<SilverlightApplication>false</SilverlightApplication>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<ValidateXaml>true</ValidateXaml>
<SilverlightVersion Condition=" '$(SilverlightVersion)' == '' ">v2.0</SilverlightVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug_Silverlight|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug_Silverlight\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;LITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release_Silverlight|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release_Silverlight\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>TRACE;SILVERLIGHT;LITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v2.0' ">
<DefineConstants>NET20;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" Condition="'$(TargetFrameworkVersion)' != 'v2.0'" />
</ItemGroup>
<ItemGroup>
<Compile Include="Extensions.cs" />
<Compile Include="Http\FormUrlEncodedReader.cs" />
<Compile Include="Http\MessageFormatFactory.cs" />
<Compile Include="Http\MessageFormatOptions.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="AbstractReader.cs" />
<Compile Include="AbstractTextReader.cs" />
<Compile Include="AbstractTextWriter.cs" />
<Compile Include="AbstractWriter.cs" />
<Compile Include="DictionaryReader.cs" />
<Compile Include="DictionaryWriter.cs" />
<Compile Include="JsonFormatReader.cs" />
<Compile Include="JsonFormatWriter.cs" />
<Compile Include="JsonTextCursor.cs" />
<Compile Include="RecursionLimitExceeded.cs" />
<Compile Include="XmlFormatReader.cs" />
<Compile Include="XmlFormatWriter.cs" />
<Compile Include="XmlReaderOptions.cs" />
<Compile Include="XmlWriterOptions.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ProtocolBuffers\ProtocolBuffersLite%28Silverlight%29.csproj">
<Project>{2275EE6B-195B-485C-B6F6-CCA01C1B5AE0}</Project>
<Name>ProtocolBuffersLite%28Silverlight%29</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
<SilverlightProjectProperties />
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>
\ No newline at end of file
...@@ -14,28 +14,7 @@ ...@@ -14,28 +14,7 @@
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<SignAssembly>true</SignAssembly> <SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\keys\Google.ProtocolBuffers.snk</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile>..\..\keys\Google.ProtocolBuffers.snk</AssemblyOriginatorKeyFile>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion> <OldToolsVersion>3.5</OldToolsVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<SilverlightVersion Condition=" '$(SilverlightVersion)' == '' ">v2.0</SilverlightVersion>
<DefineConstants Condition=" '$(TargetFrameworkVersion)' == 'v2.0' ">NET20;</DefineConstants>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
...@@ -44,11 +23,10 @@ ...@@ -44,11 +23,10 @@
<OutputPath>bin\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile> <DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn> <NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>$(DefineConstants)TRACE;DEBUG</DefineConstants> <DefineConstants>DEBUG;TRACE;LITE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
...@@ -56,36 +34,13 @@ ...@@ -56,36 +34,13 @@
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile> <DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn> <NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>$(DefineConstants)TRACE;</DefineConstants> <DefineConstants>TRACE;LITE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib> <NoStdLib>true</NoStdLib>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug_Silverlight|AnyCPU'"> <PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v2.0' ">
<DebugSymbols>true</DebugSymbols> <DefineConstants>NET20;$(DefineConstants)</DefineConstants>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug_Silverlight\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>$(DefineConstants)TRACE;DEBUG;SILVERLIGHT</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release_Silverlight|AnyCPU'">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release_Silverlight\</OutputPath>
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>1591, 1570, 1571, 1572, 1573, 1574</NoWarn>
<DefineConstants>$(DefineConstants)TRACE;SILVERLIGHT</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="mscorlib" /> <Reference Include="mscorlib" />
...@@ -114,23 +69,6 @@ ...@@ -114,23 +69,6 @@
<Compile Include="XmlReaderOptions.cs" /> <Compile Include="XmlReaderOptions.cs" />
<Compile Include="XmlWriterOptions.cs" /> <Compile Include="XmlWriterOptions.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\ProtocolBuffers\ProtocolBuffersLite.csproj"> <ProjectReference Include="..\ProtocolBuffers\ProtocolBuffersLite.csproj">
<Project>{6969BDCE-D925-43F3-94AC-A531E6DF2591}</Project> <Project>{6969BDCE-D925-43F3-94AC-A531E6DF2591}</Project>
...@@ -138,10 +76,7 @@ ...@@ -138,10 +76,7 @@
<Private>False</Private> <Private>False</Private>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition=" '$(Configuration)' == 'Debug' " /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" Condition=" '$(Configuration)' == 'Release' " />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" Condition=" '$(Configuration)' == 'Debug_Silverlight' " />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" Condition=" '$(Configuration)' == 'Release_Silverlight' " />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
......
...@@ -38,15 +38,15 @@ using System; ...@@ -38,15 +38,15 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using Google.ProtocolBuffers.Descriptors; using Google.ProtocolBuffers.Descriptors;
using NUnit.Framework; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Google.ProtocolBuffers.TestProtos; using Google.ProtocolBuffers.TestProtos;
namespace Google.ProtocolBuffers namespace Google.ProtocolBuffers
{ {
[TestFixture] [TestClass]
public class AbstractMessageTest public class AbstractMessageTest
{ {
[Test] [TestMethod]
public void Clear() public void Clear()
{ {
AbstractMessageWrapper message = AbstractMessageWrapper message =
...@@ -54,7 +54,7 @@ namespace Google.ProtocolBuffers ...@@ -54,7 +54,7 @@ namespace Google.ProtocolBuffers
TestUtil.AssertClear((TestAllTypes) message.WrappedMessage); TestUtil.AssertClear((TestAllTypes) message.WrappedMessage);
} }
[Test] [TestMethod]
public void Copy() public void Copy()
{ {
AbstractMessageWrapper message = AbstractMessageWrapper message =
...@@ -62,14 +62,14 @@ namespace Google.ProtocolBuffers ...@@ -62,14 +62,14 @@ namespace Google.ProtocolBuffers
TestUtil.AssertAllFieldsSet((TestAllTypes) message.WrappedMessage); TestUtil.AssertAllFieldsSet((TestAllTypes) message.WrappedMessage);
} }
[Test] [TestMethod]
public void CreateAndBuild() public void CreateAndBuild()
{ {
TestAllTypes.CreateBuilder() TestAllTypes.CreateBuilder()
.Build(); .Build();
} }
[Test] [TestMethod]
public void SerializedSize() public void SerializedSize()
{ {
TestAllTypes message = TestUtil.GetAllSet(); TestAllTypes message = TestUtil.GetAllSet();
...@@ -78,7 +78,7 @@ namespace Google.ProtocolBuffers ...@@ -78,7 +78,7 @@ namespace Google.ProtocolBuffers
Assert.AreEqual(message.SerializedSize, abstractMessage.SerializedSize); Assert.AreEqual(message.SerializedSize, abstractMessage.SerializedSize);
} }
[Test] [TestMethod]
public void Serialization() public void Serialization()
{ {
IMessage abstractMessage = new AbstractMessageWrapper(TestUtil.GetAllSet()); IMessage abstractMessage = new AbstractMessageWrapper(TestUtil.GetAllSet());
...@@ -86,7 +86,7 @@ namespace Google.ProtocolBuffers ...@@ -86,7 +86,7 @@ namespace Google.ProtocolBuffers
Assert.AreEqual(TestUtil.GetAllSet().ToByteString(), abstractMessage.ToByteString()); Assert.AreEqual(TestUtil.GetAllSet().ToByteString(), abstractMessage.ToByteString());
} }
[Test] [TestMethod]
public void Parsing() public void Parsing()
{ {
IBuilder builder = new AbstractMessageWrapper.Builder(TestAllTypes.CreateBuilder()); IBuilder builder = new AbstractMessageWrapper.Builder(TestAllTypes.CreateBuilder());
...@@ -95,7 +95,7 @@ namespace Google.ProtocolBuffers ...@@ -95,7 +95,7 @@ namespace Google.ProtocolBuffers
TestUtil.AssertAllFieldsSet((TestAllTypes) message.WrappedMessage); TestUtil.AssertAllFieldsSet((TestAllTypes) message.WrappedMessage);
} }
[Test] [TestMethod]
public void PackedSerialization() public void PackedSerialization()
{ {
IMessage abstractMessage = new AbstractMessageWrapper(TestUtil.GetPackedSet()); IMessage abstractMessage = new AbstractMessageWrapper(TestUtil.GetPackedSet());
...@@ -103,7 +103,7 @@ namespace Google.ProtocolBuffers ...@@ -103,7 +103,7 @@ namespace Google.ProtocolBuffers
Assert.AreEqual(TestUtil.GetPackedSet().ToByteString(), abstractMessage.ToByteString()); Assert.AreEqual(TestUtil.GetPackedSet().ToByteString(), abstractMessage.ToByteString());
} }
[Test] [TestMethod]
public void PackedParsing() public void PackedParsing()
{ {
AbstractMessageWrapper.Builder builder = new AbstractMessageWrapper.Builder(TestPackedTypes.CreateBuilder()); AbstractMessageWrapper.Builder builder = new AbstractMessageWrapper.Builder(TestPackedTypes.CreateBuilder());
...@@ -111,7 +111,7 @@ namespace Google.ProtocolBuffers ...@@ -111,7 +111,7 @@ namespace Google.ProtocolBuffers
TestUtil.AssertPackedFieldsSet((TestPackedTypes)message.WrappedMessage); TestUtil.AssertPackedFieldsSet((TestPackedTypes)message.WrappedMessage);
} }
[Test] [TestMethod]
public void UnpackedParsingOfPackedInput() public void UnpackedParsingOfPackedInput()
{ {
byte[] bytes = TestUtil.GetPackedSet().ToByteArray(); byte[] bytes = TestUtil.GetPackedSet().ToByteArray();
...@@ -119,7 +119,7 @@ namespace Google.ProtocolBuffers ...@@ -119,7 +119,7 @@ namespace Google.ProtocolBuffers
TestUtil.AssertUnpackedFieldsSet(message); TestUtil.AssertUnpackedFieldsSet(message);
} }
[Test] [TestMethod]
public void PackedParsingOfUnpackedInput() public void PackedParsingOfUnpackedInput()
{ {
byte[] bytes = TestUnpackedTypes.ParseFrom(TestUtil.GetPackedSet().ToByteArray()).ToByteArray(); byte[] bytes = TestUnpackedTypes.ParseFrom(TestUtil.GetPackedSet().ToByteArray()).ToByteArray();
...@@ -127,7 +127,7 @@ namespace Google.ProtocolBuffers ...@@ -127,7 +127,7 @@ namespace Google.ProtocolBuffers
TestUtil.AssertPackedFieldsSet(message); TestUtil.AssertPackedFieldsSet(message);
} }
[Test] [TestMethod]
public void UnpackedParsingOfPackedInputExtensions() public void UnpackedParsingOfPackedInputExtensions()
{ {
byte[] bytes = TestUtil.GetPackedSet().ToByteArray(); byte[] bytes = TestUtil.GetPackedSet().ToByteArray();
...@@ -138,7 +138,7 @@ namespace Google.ProtocolBuffers ...@@ -138,7 +138,7 @@ namespace Google.ProtocolBuffers
TestUtil.AssertUnpackedExtensionsSet(message); TestUtil.AssertUnpackedExtensionsSet(message);
} }
[Test] [TestMethod]
public void PackedParsingOfUnpackedInputExtensions() public void PackedParsingOfUnpackedInputExtensions()
{ {
byte[] bytes = TestUnpackedTypes.ParseFrom(TestUtil.GetPackedSet().ToByteArray()).ToByteArray(); byte[] bytes = TestUnpackedTypes.ParseFrom(TestUtil.GetPackedSet().ToByteArray()).ToByteArray();
...@@ -148,7 +148,7 @@ namespace Google.ProtocolBuffers ...@@ -148,7 +148,7 @@ namespace Google.ProtocolBuffers
TestUtil.AssertPackedExtensionsSet(message); TestUtil.AssertPackedExtensionsSet(message);
} }
[Test] [TestMethod]
public void OptimizedForSize() public void OptimizedForSize()
{ {
// We're mostly only Checking that this class was compiled successfully. // We're mostly only Checking that this class was compiled successfully.
...@@ -165,7 +165,7 @@ namespace Google.ProtocolBuffers ...@@ -165,7 +165,7 @@ namespace Google.ProtocolBuffers
private static readonly TestRequired TestRequiredInitialized = private static readonly TestRequired TestRequiredInitialized =
TestRequired.CreateBuilder().SetA(1).SetB(2).SetC(3).Build(); TestRequired.CreateBuilder().SetA(1).SetB(2).SetC(3).Build();
[Test] [TestMethod]
public void IsInitialized() public void IsInitialized()
{ {
TestRequired.Builder builder = TestRequired.CreateBuilder(); TestRequired.Builder builder = TestRequired.CreateBuilder();
...@@ -180,7 +180,7 @@ namespace Google.ProtocolBuffers ...@@ -180,7 +180,7 @@ namespace Google.ProtocolBuffers
Assert.IsTrue(abstractBuilder.IsInitialized); Assert.IsTrue(abstractBuilder.IsInitialized);
} }
[Test] [TestMethod]
public void ForeignIsInitialized() public void ForeignIsInitialized()
{ {
TestRequiredForeign.Builder builder = TestRequiredForeign.CreateBuilder(); TestRequiredForeign.Builder builder = TestRequiredForeign.CreateBuilder();
...@@ -227,7 +227,7 @@ namespace Google.ProtocolBuffers ...@@ -227,7 +227,7 @@ namespace Google.ProtocolBuffers
"repeated_string: \"qux\"\n" + "repeated_string: \"qux\"\n" +
"repeated_string: \"bar\"\n"; "repeated_string: \"bar\"\n";
[Test] [TestMethod]
public void MergeFrom() public void MergeFrom()
{ {
AbstractMessageWrapper result = (AbstractMessageWrapper) AbstractMessageWrapper result = (AbstractMessageWrapper)
...@@ -241,7 +241,7 @@ namespace Google.ProtocolBuffers ...@@ -241,7 +241,7 @@ namespace Google.ProtocolBuffers
// ----------------------------------------------------------------- // -----------------------------------------------------------------
// Tests for equals and hashCode // Tests for equals and hashCode
[Test] [TestMethod]
public void EqualsAndHashCode() public void EqualsAndHashCode()
{ {
TestAllTypes a = TestUtil.GetAllSet(); TestAllTypes a = TestUtil.GetAllSet();
......
<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>
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
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment