public void Add_NullProvided_DoesNotChangeElementType() { var list = new BsfList(); Assert.AreEqual(BsfType.Null, list.ElementType); list.Add(null); Assert.AreEqual(BsfType.Null, list.ElementType); list.Add(new BsfByte(0)); Assert.AreEqual(BsfType.Byte, list.ElementType); list.Add(null); Assert.AreEqual(BsfType.Byte, list.ElementType); }
public void Clear_DoesNotResetElementTypeToNull() { var list = new BsfList(); Assert.AreEqual(BsfType.Null, list.ElementType); list.Add(new BsfByte(0)); Assert.AreEqual(BsfType.Byte, list.ElementType); list.Clear(); Assert.AreNotEqual(BsfType.Null, list.ElementType); }