public void TestMoveBefore4() { var dataSources = new DataSources(); var a = new DataSource(@"A"); var b = new DataSource(@"B"); dataSources.Add(a); new Action(() => dataSources.MoveBefore(a, b)).ShouldNotThrow(); dataSources.Should().Equal(a); new Action(() => dataSources.MoveBefore(b, a)).ShouldNotThrow(); dataSources.Should().Equal(a); }
public void TestMoveBefore2() { var dataSources = new DataSources(); var a = new DataSource(@"A"); var b = new DataSource(@"B"); dataSources.Add(a); dataSources.Add(b); dataSources.MoveBefore(a, b); dataSources.Should().Equal(a, b); }