예제 #1
0
        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);
        }
예제 #2
0
        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);
        }