public void NumsStructTest() { //Arrange nums p1 = new nums() { num1 = 7, num2 = 5.123F, num3 = 7.344F }; NewPayLoad pl = new NewPayLoad("ppl"); pl.AddValue <nums>(p1); pl.ClosePackage(); string s134 = pl.BufferInfo; // Act byte[] b = pl.GetPackage(); NewPayLoad pl2 = new NewPayLoad(b); nums p2 = pl2.GetValue <nums>(); //Assert Assert.AreEqual(p1.num1, p2.num1); Assert.AreEqual(p1.num2, p2.num2); Assert.AreEqual(p1.num3, p2.num3); }
_points[new(x, y)] = int.Parse(nums[x..(x + 1)]);
Shuffle(nums, n);
if (nums[(check + 1)..(i)].Contains(nums[i] - nums[check]))