增加一些调试信息!

This commit is contained in:
falcon 2021-12-06 09:31:33 +08:00
parent 9f677d3509
commit 9767fdff20

View File

@ -13,11 +13,13 @@ namespace Falcon.StoredProcedureRunner.Tests
public void RunTest() public void RunTest()
{ {
OracleTest(); OracleTest();
System.Console.WriteLine("---------------------");
SqlserverTest(); SqlserverTest();
} }
public void SqlserverTest() public void SqlserverTest()
{ {
System.Console.WriteLine("SqlserverTest start!");
var configurationBuilder = new ConfigurationBuilder(); var configurationBuilder = new ConfigurationBuilder();
configurationBuilder.AddJsonFile("AppSettings.json"); configurationBuilder.AddJsonFile("AppSettings.json");
var config = configurationBuilder.Build(); var config = configurationBuilder.Build();
@ -33,12 +35,16 @@ namespace Falcon.StoredProcedureRunner.Tests
p3 = "abc," p3 = "abc,"
}).ToList(); }).ToList();
Assert.IsNotNull(result); Assert.IsNotNull(result);
System.Console.WriteLine("result ok");
CollectionAssert.AllItemsAreNotNull(result); CollectionAssert.AllItemsAreNotNull(result);
Assert.IsTrue(result.Count > 0); Assert.IsTrue(result.Count > 0);
System.Console.WriteLine($"result count {result.Count}");
System.Console.WriteLine("SqlserverTest over!");
} }
public void OracleTest() public void OracleTest()
{ {
System.Console.WriteLine("OracleTest start!");
var configurationBuilder = new ConfigurationBuilder(); var configurationBuilder = new ConfigurationBuilder();
configurationBuilder.AddJsonFile("AppSettings.json"); configurationBuilder.AddJsonFile("AppSettings.json");
var config = configurationBuilder.Build(); var config = configurationBuilder.Build();
@ -53,8 +59,11 @@ namespace Falcon.StoredProcedureRunner.Tests
v_orgaid = "50e3d44d-9ca2-4fbd-9d5d-d32339b1b113", v_orgaid = "50e3d44d-9ca2-4fbd-9d5d-d32339b1b113",
}).ToList(); }).ToList();
Assert.IsNotNull(result); Assert.IsNotNull(result);
System.Console.WriteLine("result ok");
CollectionAssert.AllItemsAreNotNull(result); CollectionAssert.AllItemsAreNotNull(result);
Assert.IsTrue(result.Count > 0); Assert.IsTrue(result.Count > 0);
System.Console.WriteLine($"result count {result.Count}");
System.Console.WriteLine("OracleTest over!");
} }
} }
} }