2
0
mirror of synced 2025-02-22 21:18:15 +00:00
2024-11-21 10:46:11 +01:00

40 lines
866 B
C#

using CodexPlugin;
using CodexTests;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Utils;
namespace CodexReleaseTests.DataTests
{
[TestFixture]
public class OneClientTest : CodexDistTest
{
[Test]
public void OneClient()
{
var node = StartCodex();
PerformOneClientTest(node);
LogNodeStatus(node);
}
private void PerformOneClientTest(ICodexNode primary)
{
var testFile = GenerateTestFile(1.MB());
var contentId = primary.UploadFile(testFile);
AssertNodesContainFile(contentId, primary);
var downloadedFile = primary.DownloadContent(contentId);
testFile.AssertIsEqual(downloadedFile);
}
}
}