コード例 #1
0
        public void CreateObservableCollection_Default_Always_ReturnsObservableCollectionConstructorDefault()
        {
            var uut = new CollectionFactory();

            var result = uut.CreateObservableCollection <int>();

            result.ShouldBeEmpty();
        }
コード例 #2
0
        public void CreateObservableCollection_Collection_Always_ReturnsObservableCollectionConstructorCollection(params string[] items)
        {
            var uut = new CollectionFactory();

            var collection = items.AsEnumerable();

            var result = uut.CreateObservableCollection(collection);

            result.ShouldBeOrderedEquivalentTo(collection);
        }
コード例 #3
0
        public void CreateObservableCollection_List_Always_ReturnsObservableCollectionConstructorList(params string[] items)
        {
            var uut = new CollectionFactory();

            var list = new List <string>(items);

            var result = uut.CreateObservableCollection(list);

            result.ShouldBeOrderedEquivalentTo(list);
        }