add home view and reverse 4 bytes order to send
This commit is contained in:
@@ -5,30 +5,6 @@ using Xunit.Abstractions;
|
||||
|
||||
namespace server.test;
|
||||
|
||||
public sealed class RepeatAttribute : Xunit.Sdk.DataAttribute
|
||||
{
|
||||
private readonly int count;
|
||||
|
||||
public RepeatAttribute(int count)
|
||||
{
|
||||
if (count < 1)
|
||||
{
|
||||
throw new System.ArgumentOutOfRangeException(
|
||||
paramName: nameof(count),
|
||||
message: "Repeat count must be greater than 0."
|
||||
);
|
||||
}
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public override System.Collections.Generic.IEnumerable<object[]> GetData(System.Reflection.MethodInfo testMethod)
|
||||
{
|
||||
foreach (var iterationNumber in Enumerable.Range(start: 1, count: this.count))
|
||||
{
|
||||
yield return new object[] { iterationNumber };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class UDPServerTest
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user