Author: brett
Date: Thu Aug  7 06:17:00 2014
New Revision: 1616412

URL: http://svn.apache.org/r1616412
Log:
re-enable detection of MVC for tests

MVC3 test was failing if MVC3 was not installed. Seems this was disabled
previously to allow some other tests that use MVC2 to run regardless, but
it'd be better to refactor those tests (or comment out their detection
only)

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=1616412&r1=1616411&r2=1616412&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
 Thu Aug  7 06:17:00 2014
@@ -19,7 +19,7 @@
 using System;
 using System.Collections.Generic;
 using System.IO;
-
+using System.Reflection;
 
 using NUnit.Framework;
 using NPanday.ProjectImporter;
@@ -168,15 +168,15 @@ namespace NPanday.ProjectImporter.Import
         public void CheckWebMVC(string version)
         {
             // check MVC 2 installed
-//            string name = "System.Web.MVC, Version=" + version + ", 
Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL";
-//            try
-//            {
-//                Assembly.ReflectionOnlyLoad(new 
System.Reflection.AssemblyName(name).FullName);
-//            }
-//            catch
-//            {
-//                Assert.Ignore("Test only runs with MVC " + version + " 
installed");
-//            }
+            string name = "System.Web.MVC, Version=" + version + ", 
Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL";
+            try
+            {
+                Assembly.ReflectionOnlyLoad(new 
System.Reflection.AssemblyName(name).FullName);
+            }
+            catch
+            {
+                Assert.Ignore("Test only runs with MVC " + version + " 
installed");
+            }
         }
 
                [Test]


Reply via email to