20 references to Assert
Microsoft.ML.Core (20)
Data\ModelLoading.cs (7)
93
env.
Assert
(ent.Stream.Position == 0);
103
env.
Assert
(ent.Stream.Position == 0);
163
env.
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);
351
ExceptionContext.
Assert
(!Disposed);
382
ExceptionContext.
Assert
(!Disposed);
Data\ServerChannel.cs (2)
121
_chp.
Assert
((_toPublish == null) == (_onPublish == null));
132
_chp.
Assert
((_onPublish == null) == (_toPublish == null));