示例#1
0
 public _IVisitor4_143(ConsistencyChecker _enclosing, IList invalidIds, ClassMetadata
                       clazz)
 {
     this._enclosing = _enclosing;
     this.invalidIds = invalidIds;
     this.clazz      = clazz;
 }
示例#2
0
 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());
		}
示例#4
0
		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);
     }
 }
示例#6
0
 public _IClosure4_38(ConsistencyChecker _enclosing)
 {
     this._enclosing = _enclosing;
 }
示例#7
0
 public _IVisitor4_220(ConsistencyChecker _enclosing)
 {
     this._enclosing = _enclosing;
 }
示例#8
0
 public _IVisitor4_127(ConsistencyChecker _enclosing)
 {
     this._enclosing = _enclosing;
 }
示例#9
0
 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)));
		}
示例#14
0
 public _IVisitor4_64(ConsistencyChecker _enclosing, IList invalidIds, ClassMetadata
     clazz)
 {
     this._enclosing = _enclosing;
     this.invalidIds = invalidIds;
     this.clazz = clazz;
 }
示例#15
0
 public _IClosure4_38(ConsistencyChecker _enclosing)
 {
     this._enclosing = _enclosing;
 }
示例#16
0
 public _IProcedure4_80(ConsistencyChecker _enclosing, IList invalidIds, ClassMetadata
     clazz)
 {
     this._enclosing = _enclosing;
     this.invalidIds = invalidIds;
     this.clazz = clazz;
 }
示例#17
0
		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);
			}
		}
示例#18
0
 public _IProcedure4_138(ConsistencyChecker _enclosing)
 {
     this._enclosing = _enclosing;
 }
		private void CheckConsistency()
		{
			ConsistencyReport report = new ConsistencyChecker((LocalObjectContainer)Container
				()).CheckSlotConsistency();
			if (!report.Consistent())
			{
				Assert.Fail(report.ToString());
			}
		}