public void SetUp()
 {
     _Target = new UISafeObservableCollectionUnic<MyObject>();
     _Objs = EnumerableFactory.CreateList(10, i => new MyObject(i.ToString(), i));
 }
        public void TestSimple_Constructor()
        {
            _Target = new UISafeObservableCollectionUnic<MyObject>(_Objs);
            _Target.Should().Equal(_Objs);

            _Target.MonitorEvents();
            _Target.Add(_Objs[0]);
            _Target.Should().Equal(_Objs);
            _Target.ShouldNotRaise("CollectionChanged");

            _Target[0] = _Objs[5];
            _Target.Should().Equal(_Objs);
            _Target[0].Should().Be(_Objs[0]);
            _Target.ShouldNotRaise("CollectionChanged");

        }
 public void TestSimple_Constructor_2()
 {
     IEnumerable<MyObject> el = new MyObject[] { _Objs[0], _Objs[1], _Objs[2], _Objs[1] };
     _Target = new UISafeObservableCollectionUnic<MyObject>(el);
     _Target.Should().Equal(el.Distinct());
 }