mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-04 11:07:12 +02:00
RobustToolbox projects should be named Robust.* This PR changes the RobustToolbox projects from SS14.* to Robust.* Updates SS14.* prefixes/namespaces to Robust.* Updates SpaceStation14.sln to RobustToolbox.sln Updates MSBUILD/SS14.* to MSBUILD/Robust.* Updates CSProject and MSBuild references for the above Updates git_helper.py Removes Runserver and Runclient as they are unusable
24 lines
643 B
C#
24 lines
643 B
C#
using System.Collections.Generic;
|
|
using NUnit.Framework;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Robust.UnitTesting.Shared.Utility
|
|
{
|
|
[Parallelizable(ParallelScope.All | ParallelScope.Fixtures)]
|
|
[TestFixture]
|
|
public class CollectionExtensions_Test
|
|
{
|
|
[Test]
|
|
public void RemoveSwapTest()
|
|
{
|
|
var list = new List<int> { 1, 2, 3 };
|
|
list.RemoveSwap(2);
|
|
Assert.That(list, Is.EqualTo(new List<int> { 1, 2 }));
|
|
|
|
list = new List<int> { 1, 2, 3 };
|
|
list.RemoveSwap(0);
|
|
Assert.That(list, Is.EqualTo(new List<int> { 3, 2 }));
|
|
}
|
|
}
|
|
}
|