Tests implementiert

This commit is contained in:
dev-mkoebis
2026-04-23 14:48:00 +02:00
parent d3deb79cc6
commit 786389cf80
9 changed files with 100 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ namespace Hochbaustatistik.Testing
public class DatabaseOperationsTests
{
[Fact (Skip ="Keine Datenbank-Verbindung m<>glich")]
[Fact]//(Skip ="Keine Datenbank-Verbindung m<>glich")]
public void ConnectAndExecuteHochbauTest()
{
DatabaseOperations.conString = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dborap04.stadtdo.de)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=bgvp.stadtdo.de)));user id=leser;password=leser;";

View File

@@ -11,7 +11,7 @@ namespace Hochbaustatistik.Testing
{
public class EmailTests
{
[Theory(Skip = "Kein Lotus Notes installiert")]
[Theory(Skip = "Kein lotus installiert")]
[InlineData(@"C:\TEMP\test.txt")]
public void SenMailTest(string attachment)
{

View File

@@ -13,7 +13,8 @@ using Xunit;
namespace Hochbaustatistik.Testing.Utilities
{
public class DataOpsTest
{
{
readonly string sourceFile = @"TestData\TestData.csv";
public readonly VorgangInpro vorgang = new VorgangInpro() { Schlussabnahme = "2022" };
[Theory]
@@ -118,7 +119,7 @@ namespace Hochbaustatistik.Testing.Utilities
Assert.Equal(expected2, actuals.ElementAt(1));
}
[Fact(Skip = "Keine Datenbank-Verbindung möglich")]
[Fact]
public void MergeInproWithITNRWTest()
{
var resultFile = @"C:\TEMP\hochbaustatistik.csv";

View File

@@ -20,7 +20,7 @@ namespace Hochbaustatistik.Testing
public class WebTesting
{
[Fact (Skip ="Derzeit keine Daten zum Download vorhanden")]
[Fact (Skip ="Keine Daten zum Download vorhanden")]
public void DownloadList()
{
//DownloadFolder
@@ -58,7 +58,7 @@ namespace Hochbaustatistik.Testing
driver.Quit();
Assert.True(File.Exists(pathDownloadedList));
File.Delete(pathDownloadedList);
//File.Delete(pathDownloadedList);
}
}
}