Files
RobustToolbox/Robust.UnitTesting/Shared/Utility/CollectionExtensions_Test.cs
T
SilverandGitHub 25926a17b7 Renames SS14.* to Robust.* (#793)
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
2019-04-15 20:24:59 -06:00

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 }));
}
}
}