[Test] public void ToStatusWithLog_nullRef([Values(true, false)] bool lg) { status.log = lg; StatusRef.SetLogData(dec, null, null); StatusRef.ToStatusWithLog(null); }
[Test] public void ToStatusNullRef([Range(-1, 1)] int w) { #if !AL_OPTIMIZE StatusRef.SetLogData(dec, null, null); #endif StatusRef.hold = status.@unchecked(w); StatusRef?z = null; o((status)z, StatusRef.hold); }
protected void SetLogData(object target, string reason) => StatusRef.SetLogData(this, target, reason);
[Test] public void ToStatusWithLog_badScope() { StatusRef.SetLogData(null, null, null); Assert.Throws <InvOp>(() => StatusRef.ToStatusWithLog(null)); }
// -------------------------------------------------------------- #if !AL_OPTIMIZE [Test] public void SetLogData_clearFirst() { StatusRef.SetLogData(dec, null, null); Assert.Throws <InvOp>( () => StatusRef.SetLogData(dec, null, null)); }