20 references to Assert
Microsoft.ML.Core (20)
Data\ModelLoading.cs (7)
93env.Assert(ent.Stream.Position == 0); 103env.Assert(ent.Stream.Position == 0); 163env.Assert(fp == ctx.FpMin); 244_ectx.Assert(Reader.BaseStream.Position == FpMin + Header.FpModel); 263_ectx.Assert(Reader.BaseStream.Position == FpMin + Header.FpModel); 277_ectx.Assert(Reader.BaseStream.Position == FpMin + Header.FpModel); 316_ectx.Assert(ent.Stream.Position == 0);
Data\ModelSaveContext.cs (1)
250_ectx.Assert((_ent == null) == !InRepository);
Data\ProgressReporter.cs (5)
381_ectx.Assert(entry == null); 411_ectx.Assert(entry == null); 416_ectx.Assert(entry != null); 417_ectx.Assert(kind == ProgressEvent.EventKind.Progress); 418_ectx.Assert(!info.IsFinished);
Data\Repository.cs (5)
151_ectx.Assert(!Disposed); 236_ectx.Assert(!Disposed); 274_ectx.Assert(!Disposed); 351ExceptionContext.Assert(!Disposed); 382ExceptionContext.Assert(!Disposed);
Data\ServerChannel.cs (2)
121_chp.Assert((_toPublish == null) == (_onPublish == null)); 132_chp.Assert((_onPublish == null) == (_toPublish == null));