Ejemplo n.º 1
0
        public void CheckEqualsStringTest()
        {
            List <String> lstItems = new List <String>()
            {
                "data", "data1", "data2"
            };
            StringCollectionDerived stringCollectionObj = new StringCollectionDerived(lstItems);

            stringCollectionObj.Equals(lstItems).Should().Be(false);
        }
Ejemplo n.º 2
0
        public void GenerateHashStringTest()
        {
            List <String> lstItems = new List <String>()
            {
                "data", "data1", "data2"
            };
            StringCollectionDerived stringCollectionObj = new StringCollectionDerived(lstItems);
            var result = stringCollectionObj.GetHashCode();

            result.Should().NotBe(0);
        }
Ejemplo n.º 3
0
        public void CreateCopyStringTest()
        {
            List <String> lstItems = new List <String>()
            {
                "data", "data1", "data2"
            };
            StringCollectionDerived stringCollectionObj = new StringCollectionDerived(lstItems);

            stringCollectionObj.Copy().Should().BeOfType(typeof(StringCollection));
            stringCollectionObj.Items.Should().BeEquivalentTo(lstItems);
        }