public void TestCtorWithInitialCapacity() { this.names = new SimpleSortedList <string>(20); Assert.AreEqual(this.names.Capacity, 20); Assert.AreEqual(this.names.Size, 0); }
public void TestAddingAllFromNullThrowsException() { this.names = new SimpleSortedList <string>(); Assert.Throws <ArgumentNullException>(() => names.AddAll(null)); }
public void Setup() { this.names = new SimpleSortedList <string>(); }
public void TestRemovingNullThrowsException() { this.names = new SimpleSortedList <string>(); this.names.AddAll(new string[] { "ivan", "nasko" }); Assert.Throws <ArgumentNullException>(() => names.Remove(null)); }
public void TestAddIncreasesSize() { this.names = new SimpleSortedList <string>(); this.names.Add("Nasko"); Assert.AreEqual(1, this.names.Size); }
public void SetUp() { this.names = new SimpleSortedList<string>(StringComparer.OrdinalIgnoreCase); }
public void TestRemovingNullThrowsException() { this.names = new SimpleSortedList <string>(); Assert.That(() => this.names.Remove(null), Throws.ArgumentNullException); }
public void Init() { this.names = new SimpleSortedList <string>(); }
public void TestEmptyCtor() { this.names = new SimpleSortedList <string>(); Assert.That(this.names.Capacity, Is.EqualTo(RequiredCapacity)); Assert.That(this.names.Size, Is.EqualTo(RequiredInitialSize)); }
public void TestCtorWithAllParameters() { this.names = new SimpleSortedList <string>(StringComparer.OrdinalIgnoreCase, 30); Assert.That(this.names.Capacity, Is.EqualTo(30)); Assert.That(this.names.Size, Is.EqualTo(0)); }
public void TestAdd_IncreasesSize() { this.names = new SimpleSortedList <string>(); names.Add("Pesho"); Assert.That(this.names.Size, Is.EqualTo(1)); }
public void TestEmptyCtor() { this.names = new SimpleSortedList <string>(); Assert.That(this.names.Capacity, Is.EqualTo(16)); Assert.That(this.names.Size, Is.EqualTo(0)); }
public void TestConstructorWithInitialCapacity() { this.names = new SimpleSortedList <string>(30); Assert.That(this.names.Capacity, Is.EqualTo(30)); Assert.That(this.names.Size, Is.EqualTo(0)); }
public void SetUp() { this.sut = new SimpleSortedList <string>(); }
public void SetUp() { this.names = new SimpleSortedList <string>(); this.expectedCapacity = 16; //the default capacity of the collection this.expectedSize = 0; // the default size of the collection }
public void TestCtorWithInitialCapacity() { this.names = new SimpleSortedList <string>(20); Assert.That(this.names.Capacity, Is.EqualTo(20)); Assert.That(this.names.Size, Is.EqualTo(RequiredInitialSize)); }
public void TestEmptyCtor() { this.names = new SimpleSortedList<string>(); Assert.AreEqual(16, this.names.Capacity); Assert.AreEqual(0, this.names.Size); }
public void TestCtorWithInitialComparer() { this.names = new SimpleSortedList <string>(StringComparer.OrdinalIgnoreCase); Assert.That(this.names.Capacity, Is.EqualTo(RequiredCapacity)); Assert.That(this.names.Size, Is.EqualTo(RequiredInitialSize)); }
public void TestCtorWithAllParams() { this.names = new SimpleSortedList<string>(StringComparer.OrdinalIgnoreCase, 20); Assert.AreEqual(20, this.names.Capacity); Assert.AreEqual(0, this.names.Size); }
public void InitializeTestDependencies() { this.names = new SimpleSortedList <string>(); }
public void TestInitialize() { this.names = new SimpleSortedList <string>(); }
public void TestEmptyConstructor() { this.names = new SimpleSortedList <string>(); Assert.AreEqual(16, this.names.Capacity); Assert.AreEqual(0, this.names.Size); }
public void TestJoinWithNull() { this.names = new SimpleSortedList <string>(); this.names.AddAll(new string[] { "ivan", "nasko" }); Assert.Throws <ArgumentNullException>(() => names.JoinWith(null)); }
public void TestConstructorWithInitialCapacity() { this.names = new SimpleSortedList <string>(20); Assert.AreEqual(20, this.names.Capacity); Assert.AreEqual(0, this.names.Size); }
public void TestAddingAllFromCollectionIncreasesSize() { this.names = new SimpleSortedList <string>(); names.AddAll(new[] { "Georgi", "Rosen" }); Assert.That(names.Size, Is.EqualTo(2)); }
public void TestConstructorWithAllParameters() { this.names = new SimpleSortedList <string>(30, StringComparer.OrdinalIgnoreCase); Assert.AreEqual(30, this.names.Capacity); Assert.AreEqual(0, this.names.Size); }
public void TestCtorWithInitialComparer() { this.names = new SimpleSortedList <string>(StringComparer.OrdinalIgnoreCase); Assert.AreEqual(this.names.Capacity, 16); Assert.AreEqual(this.names.Size, 0); }
public void TestCtorWithInitialCapacity() { this.names = new SimpleSortedList<string>(20); Assert.AreEqual(20, this.names.Capacity); Assert.AreEqual(0, this.names.Size); }
public void TestEmptyCtor() { this.names = new SimpleSortedList <string>(); Assert.AreEqual(this.names.Capacity, 16); Assert.AreEqual(this.names.Size, 0); }
public void TestCtorWithInitialCompararer() { this.names = new SimpleSortedList<string>(StringComparer.OrdinalIgnoreCase); Assert.AreEqual(16, this.names.Capacity); Assert.AreEqual(0, this.names.Size); }
public void TestCtorWithAllParams() { this.names = new SimpleSortedList <string>(StringComparer.OrdinalIgnoreCase, 30); Assert.AreEqual(this.names.Capacity, 30); Assert.AreEqual(this.names.Size, 0); }
public void SetUp() { this.names = new SimpleSortedList <string>(StringComparer.OrdinalIgnoreCase); }