private void AssertNext(object[] expected, IQueue4 queue) { for (var i = 0; i < expected.Length; i++) { var @object = expected[i]; Assert.IsTrue(queue.HasNext(), "Expecting '" + @object + "'"); Assert.AreSame(@object, queue.Next()); } Assert.IsFalse(queue.HasNext()); }
private void InitializeAspects() { while (_members.HasNext()) { ClassMetadata classMetadata = ((ClassMetadata)_members.Next()); classMetadata.InitializeAspects(); _statics.Add(classMetadata); } }
public virtual void Test() { _queue.Add("A"); _queue.Add("B"); _queue.Add("B"); _queue.Add("A"); Assert.AreEqual("A", _queue.Next()); Assert.AreEqual("B", _queue.Next()); Assert.IsFalse(_queue.HasNext()); }
private void CheckInits() { CheckWrites(); while (_inits.HasNext()) { ClassMetadata classMetadata = ((ClassMetadata)_inits.Next()); classMetadata.InitConfigOnUp(_systemTransaction); CheckWrites(); } }
private void CheckStatics() { InitializeAspects(); while (_statics.HasNext()) { ClassMetadata classMetadata = ((ClassMetadata)_statics.Next()); classMetadata.StoreStaticFieldValues(_systemTransaction, true); _writes.Add(classMetadata); InitializeAspects(); } }
private void CheckWrites() { CheckStatics(); while (_writes.HasNext()) { ClassMetadata classMetadata = ((ClassMetadata)_writes.Next()); classMetadata.SetStateDirty(); classMetadata.Write(_systemTransaction); _inits.Add(classMetadata); CheckStatics(); } }
public virtual bool HasNext() { return(_queue.HasNext()); }
private void AssertNext(object[] expected, IQueue4 queue) { for (int i = 0; i < expected.Length; i++) { object @object = expected[i]; Assert.IsTrue(queue.HasNext(), "Expecting '" + @object + "'"); Assert.AreSame(@object, queue.Next()); } Assert.IsFalse(queue.HasNext()); }