You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2011/12/06 07:02:06 UTC
svn commit: r1210800 -
/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/AbstractProjectImportTest.cs
Author: brett
Date: Tue Dec 6 07:02:06 2011
New Revision: 1210800
URL: http://svn.apache.org/viewvc?rev=1210800&view=rev
Log:
fix exception handling
Modified:
incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/AbstractProjectImportTest.cs
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/AbstractProjectImportTest.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/AbstractProjectImportTest.cs?rev=1210800&r1=1210799&r2=1210800&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/AbstractProjectImportTest.cs (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/AbstractProjectImportTest.cs Tue Dec 6 07:02:06 2011
@@ -142,8 +142,11 @@ namespace NPanday.ProjectImporter.Import
{
// check MVC 2 installed
string name = "System.Web.MVC, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL";
- Assembly a = Assembly.ReflectionOnlyLoad(new System.Reflection.AssemblyName(name).FullName);
- if (a == null)
+ try
+ {
+ Assembly.ReflectionOnlyLoad(new System.Reflection.AssemblyName(name).FullName);
+ }
+ catch
{
Assert.Ignore("Test only runs with MVC 2 installed");
}