public void EmptyCopyTo() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); ParameterizedStringPart[] parts = new ParameterizedStringPart[1]; collection.CopyTo(parts, 0); Assert.IsNull(parts[0]); }
public void EmptyCopyTo() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); ParameterizedStringPart[] parts = new ParameterizedStringPart[1]; collection.CopyTo(parts, 0); Assert.IsNull(parts[0]); }
public void CopyToNullArray() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); ParameterizedStringPart[] parts = new ParameterizedStringPart[1]; collection.CopyTo(null, 0); }
public void CopyToOverflowIndex() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); ParameterizedStringPart[] parts = new ParameterizedStringPart[1]; collection.Add(new ParameterizedStringPart("somename", "somevalue")); collection.Add(new ParameterizedStringPart("othername", "othervalue")); collection.CopyTo(parts, 3); }
public void CopyToZeroIndex() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); ParameterizedStringPart[] parts = new ParameterizedStringPart[2]; collection.Add(new ParameterizedStringPart("somename", "somevalue")); collection.Add(new ParameterizedStringPart("othername", "othervalue")); collection.CopyTo(parts, 0); Assert.IsNotNull(parts[0]); Assert.IsNotNull(parts[1]); Assert.AreEqual("somename", parts[0].ParameterName); Assert.AreEqual("othername", parts[1].ParameterName); }
public void CopyToIndex() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); ParameterizedStringPart[] parts = new ParameterizedStringPart[3]; collection.Add(new ParameterizedStringPart("somename", "somevalue")); collection.Add(new ParameterizedStringPart("othername", "othervalue")); collection.CopyTo(parts, 1); Assert.IsNull(parts[0]); Assert.IsNotNull(parts[1]); Assert.AreEqual("somename", parts[1].ParameterName); Assert.AreEqual("othername", parts[2].ParameterName); }
public void CopyToOverflowIndex() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); ParameterizedStringPart[] parts = new ParameterizedStringPart[1]; collection.Add(new ParameterizedStringPart("somename", "somevalue")); collection.Add(new ParameterizedStringPart("othername", "othervalue")); collection.CopyTo(parts, 3); }
public void CopyToNullArray() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); ParameterizedStringPart[] parts = new ParameterizedStringPart[1]; collection.CopyTo(null, 0); }