public void Simple() { var listBase = new ListBase <int> { 3 }; listBase[0] = 4; Assert.IsTrue(listBase.Contains(4)); Assert.IsFalse(listBase.Contains(3)); }
public void Simple() { var listBase = new ListBase <int>(); listBase.AddRange(new [] { 3 }); Assert.IsTrue(listBase.Contains(3)); }
public void Simple() { var listBase = new ListBase <int>(); listBase.Insert(0, 3); Assert.IsTrue(listBase.Contains(3)); }
public void Simple() { var listBase = new ListBase <int> { 3 }; Assert.IsTrue(listBase.Contains(3)); }
private ListBase <string> LoadActiveMessageTypes() { ListBase <string> objActiveMessageTypes = new ListBase <string>(); foreach (LogBase objLog in Logs) { foreach (MessageType objMessageType in objLog.MessageTypes) { if (objMessageType.Enabled == true) { bool blnExists = objActiveMessageTypes.Contains(objMessageType.FullName); if (blnExists == false) { objActiveMessageTypes.Add(objMessageType.FullName); } } } } return(objActiveMessageTypes); }
public void Collection() { var listBase = new ListBase <int>(new[] { 3 }); Assert.IsTrue(listBase.Contains(3)); }
public void Collection() { var listBase = new ListBase<int>(new[]{3}); Assert.IsTrue(listBase.Contains(3)); }
public void Simple() { var listBase = new ListBase<int> {3}; Assert.IsTrue(listBase.Contains(3)); }