Beispiel #1
0
        public void ToString_OfEmptyCollection_ShouldReturnCountOfCollectionAndAllItems()
        {
            var byValue = new CollectionByValue <int>(new int[] { }, new Options <int>(true, null));

            var result = byValue.ToString();

            Assert.AreEqual("0:[]", result);
        }
Beispiel #2
0
        public void ToString_OfNullCollection_ShouldReturnTypeAndNullMark()
        {
            var byValue = new CollectionByValue <int>((int[])null, new Options <int>(true, null));

            var result = byValue.ToString();

            Assert.AreEqual("<null> of Int32", result);
        }
Beispiel #3
0
        public void ToString_ShouldReturnCountOfCollectionAndAllItems()
        {
            var byValue = new CollectionByValue <string>(new[] { "qwe", "asd" }, StrictOptions);

            var result = byValue.ToString();

            Assert.AreEqual("2:[qwe,asd]", result);
        }