/[OhmsLawCalc]/trunk/libOhmsLawCalc/OhmsLawAPITest.cs
ViewVC logotype

Contents of /trunk/libOhmsLawCalc/OhmsLawAPITest.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (show annotations) (download)
Wed Jan 29 03:33:23 2014 UTC (5 years, 11 months ago) by william
File size: 889 byte(s)

1 using Enterprise.Logging;
2 using System;
3 using System.Collections.Generic;
4 using System.Diagnostics;
5 using System.Linq;
6 using System.Text;
7
8 namespace libOhmsLawCalc
9 {
10 public class OhmsLawAPITest
11 {
12 [Conditional("ENABLE_API_TESTING")]
13 public void TestAPI()
14 {
15 gLog.Warn.WriteLine("Starting Ohm's Law API Test");
16 try
17 {
18 // API testing code here
19 }
20 catch (Exception ex)
21 {
22 gLog.Error.WriteLine("Failed to compelte Ohm's Law API Test");
23 gLog.Error.WriteLine(ex.ToString());
24 if (Debugger.IsAttached) { throw ex; }
25 else
26 {
27 return;
28 }
29 }
30 gLog.Warn.WriteLine("Completed Ohm's Law API Test");
31 }
32 }
33 }

  ViewVC Help
Powered by ViewVC 1.1.22