Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in VS 2013?
Message
De
02/05/2014 16:16:26
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Problèmes
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01599384
Message ID:
01599449
Vues:
31
Do you compile for 32 or 64 bit?


>No, this is not a WEB app. I am actually running tests, e.g. I press F6 to build the application, then I go to the Tests.cs file where I have test like this:
>
>
>  [TestMethod][TestCategory("Validation")]
>      public void V_vpTestValidatePass_AutoSale2()
>      {
>          String cResult = "0-OK";
>          String cInvoke = @"<func>checkandvalidatepass</func><tcwhichkey></tcwhichkey><tcprefix>A</tcprefix>
><tnpassno>10023001</tnpassno><tcoperator>SAM</tcoperator><tcsalespoint>SC9190</tcsalespoint>
><tcphyslocation>SC9190</tcphyslocation><tnnumvals>1</tnnumvals><typrice>0.00</typrice>
><tcReturnType>STR</tcReturnType><tcdptcatitm></tcdptcatitm>";
>
>          cResult = middlewareMain.Invoke(cInvoke);
>
>          String cExpected = "<ERR>0</ERR><STATUSCODE>0</STATUSCODE><MSG>OK  0-0-OK - PASS_NO: 10023001 - WARNINGS: 0 - DCI: CONSIGNMT VOUCHERS  VOUCHERADT - PASSTABLE: ACCESS </MSG>";
>          Assert.IsTrue(String.Equals(cResult.Right(100), cExpected.Right(100), StringComparison.OrdinalIgnoreCase)); // Expected has extra 0-0-OK -- need to work on that
>      }
>
>I put a cursor on the cResult line and click on 'Debug Test'. While debugging when I find an error, I stop the debugger to fix the offending piece. After that I try to press F6 again and get the error.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform