public void RenameTest() { NameValueItem item = new NameValueItem(); item.Name = "MyName"; item.Value = "Value1"; items.Add(item); item.Name = "hello"; Assert.AreSame(item, items.GetNameValueItem("hello")); }
public void IndexerTest() { NameValueItem nameValueItem = new NameValueItem(); nameValueItem.Name = "Bill"; NameValueItemCollection collection = new NameValueItemCollection(); collection.Add(nameValueItem); NameValueItem billSection = collection.GetNameValueItem("Bill"); Assert.AreSame(nameValueItem, billSection); }
public void IndexerTest() { NameValueItem nameValueItem = new NameValueItem(); nameValueItem.Name = "Bill"; NameValueItemCollection collection = new NameValueItemCollection(); collection.Add(nameValueItem); NameValueItem billSection = collection.GetNameValueItem("Bill"); Assert.AreSame(nameValueItem, billSection); }