Click here to Skip to main content
15,896,606 members
Articles / Desktop Programming / WPF

Automated Testing in Silverlight

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
6 Apr 2009CPOL2 min read 42.3K   772   15  
Simulate user interactions in a Silverlight application to create automated tests
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>

    <!-- Do not remove. Sets up configsectionhandler section for log4net -->
    <configSections>
        <section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
    </configSections>

    <!--
     Application settings for NUnit-gui.exe. Do NOT put settings
	 for use by your tests here.
	-->
 <appSettings>

	<!--	
	 Specify the location to be used by .NET for the cache 
	-->
    <add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" />
    
    <!--
     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>
  

    <!-- 
     The startup section may be used to specify the runtime versions 
     supported in the order that they will be used if more than one
     is present. As supplied, this section is commented out, which
     causes nunit-console to use the version of the framework with
     which it was built.
	 
	 Since .NET 1.0 does not recognize the <supportedRuntime> elements,
	 a <requiredRuntime> element is used in case it is the only version
	 of the framework that is installed.
    -->
    <!--
  <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 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
    just as we do for nunit.tests.dll.
   -->
  
 <runtime>

   <legacyUnhandledExceptionPolicy enabled="1" />

   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="addins"/>
   </assemblyBinding>

   <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>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Tester / Quality Assurance
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions