Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }