public ClearAt ( int index ) : void | ||
index | int | /// The index. /// |
return | void |
public void ClearAtTest() { var secondComplexChain = new ComplexChain("AGTC"); var firstComplexChain = new ComplexChain("ATC"); secondComplexChain.ClearAt(1); Assert.True(firstComplexChain.Equals(secondComplexChain)); }
public void IsEmptyTest() { string str = "s"; var emptyChain = new ComplexChain(string.Empty); Assert.True(emptyChain.IsEmpty()); emptyChain.Concat(str); Assert.True(!emptyChain.IsEmpty()); emptyChain.ClearAt(0); Assert.True(emptyChain.IsEmpty()); }