Codebasis als Dateien ins Arbeitsrepo statt als Gitlink

QuellCode/CentronERP war nur als Gitlink (Submodul-Referenz auf 79c1142)
getrackt, ohne .gitmodules und ohne erreichbares Remote. Der
Untersuchungsgegenstand der Versuchsreihe war damit nicht reproduzierbar
gesichert: Ein Klon haette ein leeres Verzeichnis erhalten, und die Belege
der 3.287 Anforderungen waeren nicht ueberpruefbar gewesen.

Umstellung:
- Historie nach c:\DEV\CentronERP_git_snapshot_79c1142 ausgelagert
  (vollstaendig lesbar, enthaelt 79c1142 und Vorgaenger 89ccfd6)
- Gitlink aus dem Index entfernt
- Dateiinhalt aufgenommen: 24.557 Dateien, rund 333 MB

Die verschachtelte .gitignore der Codebasis gilt weiter, Build-Artefakte
bleiben ausgeschlossen. Details in Versuche/Versuch_01/_Codebasis-Nachweis.md
This commit is contained in:
Christoph Schwörer
2026-08-26 07:43:51 +02:00
parent 18edae75b6
commit f045b99a25
24664 changed files with 5846716 additions and 1 deletions
@@ -0,0 +1,57 @@
using System;
using System.Threading.Tasks;
using Centron.Common.TextCoding;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.CryptoControls;
public class CryptoControlTests : CentronTest
{
public CryptoControlTests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
[Theory]
[InlineData(0, "Irgendein Text den ich verschlüsseln will, zB ein Connection-String!")]
[InlineData(1, "")]
[InlineData(2, " ")]
[InlineData(3, "\t")]
[InlineData(4, "\r\n")]
[InlineData(5, null)]
[InlineData(6, "245050016053193207141108203017074108161195181234")]
public void Encrypt_Decrypt_Text(int counter, string input)
{
var encryptedText = CryptoControl.EncryptToString(input);
this.Verifier.Verify($"EncryptedText_{counter}", encryptedText);
var decryptedText = CryptoControl.DecryptString(encryptedText);
var expectedText = input is null
? "" // The Encrypt-Decrypt-Dance will return "" for NULL input instead
: input;
Assert.Equal(expectedText, decryptedText);
}
[Fact]
public void Decrypt_Text_InvalidDataReturnsEmptyString()
{
var ex = Assert.Throws<FormatException>(() => CryptoControl.DecryptString("Haha"));
Assert.Equal("The input string 'Hah' was not in a correct format.", ex.Message);
}
[Fact]
public void Multi_Threading_Test()
{
Parallel.For(0, 10000, i =>
{
var input = "Hallo";
var encrypted = CryptoControl.EncryptToString(input);
var decrypted = CryptoControl.DecryptString(encrypted);
Assert.Equal(input, decrypted);
});
}
}
@@ -0,0 +1 @@
'199038070004203229112165230154234175005047113044039079005081042133156032154169096122224094081178003191236154211054217115241049104141059252096042160150198107143254043162059056201079024050137214232076058063072247054154040237199204106201236116'
@@ -0,0 +1 @@
'211208002039180210043035234206155226139151081083'
@@ -0,0 +1 @@
'174101038191024002223197074171194237229238243214'
@@ -0,0 +1 @@
'091162164110179084141159197137234057121175126015'
@@ -0,0 +1 @@
'084212254250034063253172021014143017022010093047'
@@ -0,0 +1 @@
'177024077144247002211039056110186083115158012039171241064253238042060210014113163142010099126084106209022149000149106170230144178076069111092246112092192016187177209203070239015134183093203171'