public void TestMoveBefore4() { var dataSources = new DataSourceSettings(); var a = new DataSource(@"A"); var b = new DataSource(@"B"); dataSources.Add(a); new Action(() => dataSources.MoveBefore(a, b)).Should().NotThrow(); dataSources.Should().Equal(a); new Action(() => dataSources.MoveBefore(b, a)).Should().NotThrow(); dataSources.Should().Equal(a); }
public void TestMoveBefore2() { var dataSources = new DataSourceSettings(); 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); }