public _IVisitor4_143(ConsistencyChecker _enclosing, IList invalidIds, ClassMetadata clazz) { this._enclosing = _enclosing; this.invalidIds = invalidIds; this.clazz = clazz; }
public _IProcedure4_159(ConsistencyChecker _enclosing, IList invalidIds, ClassMetadata clazz) { this._enclosing = _enclosing; this.invalidIds = invalidIds; this.clazz = clazz; }
/// <exception cref="System.Exception"></exception> public virtual void Test() { UpdateAll(); ConsistencyChecker.ConsistencyReport consistencyReport = new ConsistencyChecker(FileSession ()).CheckSlotConsistency(); Assert.IsTrue(consistencyReport.Consistent(), consistencyReport.ToString()); }
private void Check(IConfiguration config) { IObjectContainer db = base.CreateDatabase(config); ConsistencyReport report = new ConsistencyChecker(db).CheckSlotConsistency(); CloseAndWait(db); if (!report.Consistent()) { throw new TestException(report.ToString(), null); } }
private void AssertCount(SimpleEnum value, int count) { var consistencyReport = new ConsistencyChecker(FileSession()).CheckSlotConsistency (); if (!consistencyReport.Consistent()) { Runtime.Err.WriteLine(consistencyReport); throw new InvalidOperationException("Inconsistency found"); } var query = NewQuery(typeof (Item)); query.Descend("_value").Constrain(value); var result = query.Execute(); Assert.AreEqual(count, result.Count); while (result.HasNext()) { Assert.AreEqual(value, ((Item) result.Next())._value); } }
public _IClosure4_38(ConsistencyChecker _enclosing) { this._enclosing = _enclosing; }
public _IVisitor4_220(ConsistencyChecker _enclosing) { this._enclosing = _enclosing; }
public _IVisitor4_127(ConsistencyChecker _enclosing) { this._enclosing = _enclosing; }
public _IProcedure4_138(ConsistencyChecker _enclosing) { this._enclosing = _enclosing; }
private void Checkdb() { ConsistencyReport consistencyReport = new ConsistencyChecker((LocalObjectContainer )Container()).CheckSlotConsistency(); Assert.IsTrue(consistencyReport.Consistent(), consistencyReport.ToString()); }
public SlotWithSource(Slot slot, ConsistencyChecker.SlotSource source) { this.slot = slot; this.source = source; }
public MappingTree(Slot slot, ConsistencyChecker.SlotSource source) : base(slot.Address (), new ConsistencyChecker.SlotWithSource(slot, source)) { }
private void AddMapping(Slot slot, ConsistencyChecker.SlotSource source) { mappings = ((TreeIntObject)Tree.Add(mappings, new ConsistencyChecker.MappingTree( slot, source))); }
public _IVisitor4_64(ConsistencyChecker _enclosing, IList invalidIds, ClassMetadata clazz) { this._enclosing = _enclosing; this.invalidIds = invalidIds; this.clazz = clazz; }
public _IProcedure4_80(ConsistencyChecker _enclosing, IList invalidIds, ClassMetadata clazz) { this._enclosing = _enclosing; this.invalidIds = invalidIds; this.clazz = clazz; }
private void AssertCount(StaticFieldUpdateTestCase.SimpleEnum value, int count) { ConsistencyReport consistencyReport = new ConsistencyChecker(FileSession()).CheckSlotConsistency (); if (!consistencyReport.Consistent()) { Sharpen.Runtime.Err.WriteLine(consistencyReport); throw new InvalidOperationException("Inconsistency found"); } IQuery query = NewQuery(typeof(StaticFieldUpdateTestCase.Item)); query.Descend("_value").Constrain(value); IObjectSet result = query.Execute(); Assert.AreEqual(count, result.Count); while (result.HasNext()) { Assert.AreEqual(value, ((StaticFieldUpdateTestCase.Item)result.Next())._value); } }
private void CheckConsistency() { ConsistencyReport report = new ConsistencyChecker((LocalObjectContainer)Container ()).CheckSlotConsistency(); if (!report.Consistent()) { Assert.Fail(report.ToString()); } }