Exemplo n.º 1
0
        public void TestCanBeDragged3()
        {
            var a = _model.GetOrAddFile("A");
            var b = _model.GetOrAddFile("B");
            var c = _model.GetOrAddFile("C");

            _model.OnDropped(a, b, DataSourceDropType.Group);
            var merged = _model.Observable[0] as MergedDataSourceViewModel;
            IDataSourceViewModel unused;

            _model.CanBeDropped(merged, c, DataSourceDropType.Group, out unused).Should().BeFalse();
        }
 public bool CanBeDropped(IDataSourceViewModel source,
                          IDataSourceViewModel dest,
                          DataSourceDropType dropType,
                          out IDataSourceViewModel finalDest)
 {
     return(_dataSources.CanBeDropped(source, dest, dropType, out finalDest));
 }