cs-codex-dist-tests/Tests/CodexTests/BasicTests/OneClientTests.cs

32 lines
683 B
C#
Raw Normal View History

2023-09-12 13:43:30 +00:00
using CodexPlugin;
using NUnit.Framework;
using Utils;
namespace CodexTests.BasicTests
2023-09-12 13:43:30 +00:00
{
[TestFixture]
public class OneClientTests : CodexDistTest
2023-09-12 13:43:30 +00:00
{
[Test]
public void OneClientTest()
{
2024-05-09 07:32:48 +00:00
var primary = StartCodex();
2023-09-12 13:43:30 +00:00
PerformOneClientTest(primary);
2024-06-06 08:31:31 +00:00
LogNodeStatus(primary);
2023-09-12 13:43:30 +00:00
}
2023-09-19 09:51:59 +00:00
private void PerformOneClientTest(ICodexNode primary)
2023-09-12 13:43:30 +00:00
{
var testFile = GenerateTestFile(1.MB());
var contentId = primary.UploadFile(testFile);
var downloadedFile = primary.DownloadContent(contentId);
testFile.AssertIsEqual(downloadedFile);
}
}
}