示例#1
0
 [Test] public void ToStatusWithLog_nullRef([Values(true, false)]
                                            bool lg)
 {
     status.log = lg;
     StatusRef.SetLogData(dec, null, null);
     StatusRef.ToStatusWithLog(null);
 }
示例#2
0
 [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);
示例#4
0
 [Test] public void ToStatusWithLog_badScope()
 {
     StatusRef.SetLogData(null, null, null);
     Assert.Throws <InvOp>(() => StatusRef.ToStatusWithLog(null));
 }
示例#5
0
    // --------------------------------------------------------------

    #if !AL_OPTIMIZE
    [Test] public void SetLogData_clearFirst()
    {
        StatusRef.SetLogData(dec, null, null);
        Assert.Throws <InvOp>(
            () => StatusRef.SetLogData(dec, null, null));
    }