public void CheckCollectionOnEmpty() { Initialize ini = new Initialize(); ISets <object> setz = ini.CreateSetClassWithCollection(); Assert.IsFalse(setz.IsEmpty()); }
public void CheckEmptyCollectionOnEmpty() { Initialize ini = new Initialize(); ISets <object> setz = ini.CreateSetClass(); Assert.IsTrue(setz.IsEmpty()); }
public void CheckCount() { Initialize ini = new Initialize(); ISets <object> setz = ini.CreateSetClassWithCollection(); Assert.AreEqual(ini.GetCount, setz.GetCount); }
public void EqualsItemFalse() { Initialize ini = new Initialize(); ISets <object> setz = ini.CreateSetClassWithCollection(); object obj = new object(); Assert.IsFalse(setz.Exist(obj)); }
public void AddedObject() { Initialize ini = new Initialize(); ISets <object> setz = ini.CreateSetClassWithCollection(); setz.Add(new object()); Assert.AreEqual(3, setz.GetCount); }
public void EqualsPredicateItemTrue() { Initialize ini = new Initialize(); ISets <object> setz = ini.CreateSetClassWithCollection(); object obj = new object(); setz.Add(obj); Assert.IsTrue(setz.Exist(e => e.Equals(obj))); }
public void GetItem() { Initialize ini = new Initialize(); ISets <object> setz = ini.CreateSetClassWithCollection(); object obj = new object(); setz.Add(obj); Assert.AreEqual(obj, setz.GetItem(2)); }
public void DeleteObjectFromEmptyCollection() { Initialize ini = new Initialize(); ISets <object> setz = ini.CreateSetClass(); object obj = new object(); setz.Delete(obj); Assert.AreEqual(0, setz.GetCount); }
public void CheckEqualObject() { Initialize ini = new Initialize(); ISets <object> setz = ini.CreateSetClassWithCollection(); object obj = new object(); try { setz.Add(obj); setz.Add(obj); } catch (ExistException e) { Assert.AreEqual("Equals entity", e.Message); } }