public void CheckEqualsStringTest() { List <String> lstItems = new List <String>() { "data", "data1", "data2" }; StringCollectionDerived stringCollectionObj = new StringCollectionDerived(lstItems); stringCollectionObj.Equals(lstItems).Should().Be(false); }
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); }
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); }